mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
|
@ -216,9 +216,9 @@ class SimpleHTTPServerTestCase(BaseTestCase):
|
|||
|
||||
def check_status_and_reason(self, response, status, data=None):
|
||||
body = response.read()
|
||||
self.assert_(response)
|
||||
self.assertTrue(response)
|
||||
self.assertEquals(response.status, status)
|
||||
self.assert_(response.reason != None)
|
||||
self.assertTrue(response.reason != None)
|
||||
if data:
|
||||
self.assertEqual(data, body)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue