Merge "change assert_ to assertTrue"
This commit is contained in:
commit
76c42a820c
@ -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