diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-04-22 13:12:11 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-04-22 13:12:11 +0000 |
commit | 572bb9ddb720c7cf948906c72be30b022ded0df0 (patch) | |
tree | cbda38c0b2178179abd1e34eb2a82cee46dcacda /tests | |
parent | 67767b3e8074e4b4a218d7649ef2297c124c342f (diff) | |
parent | 721e275cd58c063692cdb956f48cbcd07fdb66ec (diff) | |
download | oslo-572bb9ddb720c7cf948906c72be30b022ded0df0.tar.gz oslo-572bb9ddb720c7cf948906c72be30b022ded0df0.tar.xz oslo-572bb9ddb720c7cf948906c72be30b022ded0df0.zip |
Merge "Move wsgi.Service socket creation into the constructor."
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_wsgi.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/unit/test_wsgi.py b/tests/unit/test_wsgi.py index 9a2e04b..94d8092 100644 --- a/tests/unit/test_wsgi.py +++ b/tests/unit/test_wsgi.py @@ -544,10 +544,6 @@ class WSGIServerTest(utils.BaseTestCase): server.stop() def test_ipv6_listen_called_with_scope(self): - server = wsgi.Service("test_app", - 1234, - host="fe80::204:acff:fe96:da87%eth0") - with mock.patch.object(wsgi.eventlet, 'listen') as mock_listen: with mock.patch.object(socket, 'getaddrinfo') as mock_get_addr: mock_get_addr.return_value = [ @@ -557,7 +553,10 @@ class WSGIServerTest(utils.BaseTestCase): '', ('fe80::204:acff:fe96:da87%eth0', 1234, 0, 2)) ] - server.start() + + wsgi.Service("test_app", + 1234, + host="fe80::204:acff:fe96:da87%eth0") mock_get_addr.assert_called_once_with( "fe80::204:acff:fe96:da87%eth0", |