Merge "remove unnecessary message when running unit test"
This commit is contained in:
commit
634dd615e6
@ -186,8 +186,9 @@ class ClientTest(testtools.TestCase):
|
|||||||
'http://foo.com/trove/')
|
'http://foo.com/trove/')
|
||||||
|
|
||||||
def test_log_req(self):
|
def test_log_req(self):
|
||||||
self.logger = self.useFixture(
|
logger = self.useFixture(
|
||||||
fixtures.FakeLogger(
|
fixtures.FakeLogger(
|
||||||
|
name='troveclient.client',
|
||||||
format="%(message)s",
|
format="%(message)s",
|
||||||
level=logging.DEBUG,
|
level=logging.DEBUG,
|
||||||
nuke_handlers=True
|
nuke_handlers=True
|
||||||
@ -207,7 +208,7 @@ class ClientTest(testtools.TestCase):
|
|||||||
'data': '{"auth": {"passwordCredentials": '
|
'data': '{"auth": {"passwordCredentials": '
|
||||||
'{"password": "password"}}}'})
|
'{"password": "password"}}}'})
|
||||||
|
|
||||||
output = self.logger.output.split('\n')
|
output = logger.output.split('\n')
|
||||||
|
|
||||||
self.assertIn("REQ: curl -i /foo -X GET", output)
|
self.assertIn("REQ: curl -i /foo -X GET", output)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
|
Loading…
Reference in New Issue
Block a user