change assert_ to assertTrue
According to http://docs.python.org/2/library/unittest.html assert_ is a deprecated alias of assertTrue. Change-Id: I18db0af72934dde4498502fb29579941d020cf01
This commit is contained in:
parent
22badfd804
commit
f58a1640a1
@ -216,7 +216,7 @@ class TestHttpHelpers(MockHttpTest):
|
|||||||
# test the default
|
# test the default
|
||||||
conn.request('GET', '/')
|
conn.request('GET', '/')
|
||||||
ua = req_headers.get('user-agent', 'XXX-MISSING-XXX')
|
ua = req_headers.get('user-agent', 'XXX-MISSING-XXX')
|
||||||
self.assert_(ua.startswith('python-swiftclient-'))
|
self.assertTrue(ua.startswith('python-swiftclient-'))
|
||||||
|
|
||||||
def test_set_user_agent_per_request_override(self):
|
def test_set_user_agent_per_request_override(self):
|
||||||
_junk, conn = c.http_connection('http://www.example.com')
|
_junk, conn = c.http_connection('http://www.example.com')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user