summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Basnight <mbasnight@gmail.com>2012-12-06 11:51:37 -0600
committerMichael Basnight <mbasnight@gmail.com>2012-12-10 12:54:17 -0600
commit1438ac6107865f1440a6d6aea82c602f84898203 (patch)
treee2873873cfe8d2a32b5ccf39121545359e97f6c2 /tests
parent7cf016a21558803039cfadd2b98cc5cab528972f (diff)
downloadoslo-1438ac6107865f1440a6d6aea82c602f84898203.tar.gz
oslo-1438ac6107865f1440a6d6aea82c602f84898203.tar.xz
oslo-1438ac6107865f1440a6d6aea82c602f84898203.zip
Make wsgi.Server comply with service.Launcher interface
fixes LP 1087369 Change-Id: Icf222b5bffe1f40a5c325ffe2a1b397f22713c00
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_wsgi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_wsgi.py b/tests/unit/test_wsgi.py
index 25c0dcf..07c85d5 100644
--- a/tests/unit/test_wsgi.py
+++ b/tests/unit/test_wsgi.py
@@ -449,14 +449,14 @@ class ServerTest(unittest.TestCase):
class WSGIServerTest(unittest.TestCase):
def test_pool(self):
- server = wsgi.Service()
+ server = wsgi.Service('fake', 9000)
self.assertTrue(server.tg)
self.assertTrue(server.tg.pool)
self.assertEqual(server.tg.pool.free(), 1000)
def test_start_random_port(self):
- server = wsgi.Service()
- server.start("test_random_port", 0)
+ server = wsgi.Service('test_random_port', 0)
+ server.start()
self.assertEqual("0.0.0.0", server.host)
self.assertNotEqual(0, server.port)
server.stop()