Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)'

trivialfix

Change-Id: I4d05a8bbcf99794c02261a9f9136e1c6f2c561a6
This commit is contained in:
Cao Xuan Hoang
2016-09-28 11:51:59 +07:00
parent 3bb28213bc
commit 47e289bec2

View File

@@ -157,7 +157,7 @@ class TestClient(testtools.TestCase):
http_client.get(path)
headers = self.mock.last_request.headers
self.assertTrue('Accept-Language' not in headers)
self.assertNotIn('Accept-Language', headers)
def test_connection_timeout(self):
"""Verify a InvalidEndpoint is received if connection times out."""