From 47e289bec20e35340eb77506e87dfce8c690fcf2 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Wed, 28 Sep 2016 11:51:59 +0700 Subject: [PATCH] Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)' trivialfix Change-Id: I4d05a8bbcf99794c02261a9f9136e1c6f2c561a6 --- glanceclient/tests/unit/test_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/tests/unit/test_http.py b/glanceclient/tests/unit/test_http.py index 8e119c33..b8d9c433 100644 --- a/glanceclient/tests/unit/test_http.py +++ b/glanceclient/tests/unit/test_http.py @@ -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."""