summaryrefslogtreecommitdiff
path: root/glanceclient
diff options
context:
space:
mode:
authorCao Xuan Hoang <hoangcx@vn.fujitsu.com>2016-09-28 11:51:59 +0700
committerCao Xuan Hoang <hoangcx@vn.fujitsu.com>2016-09-28 11:52:29 +0700
commit47e289bec20e35340eb77506e87dfce8c690fcf2 (patch)
tree8d9b38b60908f9b7935a34f6e115f766cd59c15b /glanceclient
parent3bb28213bc0fe5871550217d9c7d59e1e3187a57 (diff)
downloadpython-glanceclient-47e289bec20e35340eb77506e87dfce8c690fcf2.tar.gz
Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)'
trivialfix Change-Id: I4d05a8bbcf99794c02261a9f9136e1c6f2c561a6
Diffstat (limited to 'glanceclient')
-rw-r--r--glanceclient/tests/unit/test_http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/tests/unit/test_http.py b/glanceclient/tests/unit/test_http.py
index 8e119c3..b8d9c43 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."""