Fix unittest in test_api.py

tox -e py27 fails with this error:
socket.error: [Error 98] Address already in use

Change-Id: I1cf4a000fb82228bed6a7da61feed48ab679b891
Closes-Bug: #1599556
This commit is contained in:
licanwei 2016-07-12 14:12:18 +08:00
parent 405cde2ff9
commit 76a61e234a
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class TestApi(base.BaseTestCase):
api.main()
self.assertEqual(1, m_launcher.call_count)
@mock.patch.object(wsgi, "Server", mock.Mock())
@mock.patch("watcher.api.app.pecan.make_app")
@mock.patch.object(service, "process_launcher")
def test_run_api_app_serve_specific_address(self, m_launcher, m_make_app):