mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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
|
@ -35,11 +35,11 @@ class NetrcTestCase(unittest.TestCase):
|
|||
os.unlink(temp_filename)
|
||||
|
||||
def test_case_1(self):
|
||||
self.assert_(self.netrc.macros == {'macro1':['line1\n', 'line2\n'],
|
||||
self.assertTrue(self.netrc.macros == {'macro1':['line1\n', 'line2\n'],
|
||||
'macro2':['line3\n', 'line4\n']}
|
||||
)
|
||||
self.assert_(self.netrc.hosts['foo'] == ('log1', 'acct1', 'pass1'))
|
||||
self.assert_(self.netrc.hosts['default'] == ('log2', None, 'pass2'))
|
||||
self.assertTrue(self.netrc.hosts['foo'] == ('log1', 'acct1', 'pass1'))
|
||||
self.assertTrue(self.netrc.hosts['default'] == ('log2', None, 'pass2'))
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(NetrcTestCase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue