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:
Christian Berendt 2014-05-14 21:15:07 +02:00
parent 22badfd804
commit f58a1640a1

@ -216,7 +216,7 @@ class TestHttpHelpers(MockHttpTest):
# test the default
conn.request('GET', '/')
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):
_junk, conn = c.http_connection('http://www.example.com')