diff options
author | Keith Gaughan <k@stereochro.me> | 2013-05-23 21:25:42 +0100 |
---|---|---|
committer | Keith Gaughan <k@stereochro.me> | 2013-05-23 21:25:42 +0100 |
commit | d4c6e186b05494549498ec6f4730a51722fb88ff (patch) | |
tree | 495c0363a389c43be26625ad17a0ad42b3229cfb /waitress/tests/test_init.py | |
parent | 6d7a0f0edbb0df32cd03e664eca2ae8f92106fec (diff) | |
download | waitress-d4c6e186b05494549498ec6f4730a51722fb88ff.tar.gz |
autopep8 runthrough and janitorial changes.
Diffstat (limited to 'waitress/tests/test_init.py')
-rw-r--r-- | waitress/tests/test_init.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/waitress/tests/test_init.py b/waitress/tests/test_init.py index c1205de..66c34ce 100644 --- a/waitress/tests/test_init.py +++ b/waitress/tests/test_init.py @@ -1,6 +1,7 @@ import unittest class Test_serve(unittest.TestCase): + def _callFUT(self, app, **kw): from waitress import serve return serve(app, **kw) @@ -14,6 +15,7 @@ class Test_serve(unittest.TestCase): self.assertEqual(server.ran, True) class Test_serve_paste(unittest.TestCase): + def _callFUT(self, app, **kw): from waitress import serve_paste return serve_paste(app, None, **kw) @@ -25,19 +27,21 @@ class Test_serve_paste(unittest.TestCase): self.assertEqual(server.app, app) self.assertEqual(result, 0) self.assertEqual(server.ran, True) - + class DummyServerFactory(object): ran = False + def __call__(self, app, **kw): self.adj = DummyAdj(kw) self.app = app self.kw = kw return self + def run(self): self.ran = True - + class DummyAdj(object): verbose = False + def __init__(self, kw): self.__dict__.update(kw) - |