mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +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
|
@ -256,9 +256,9 @@ class MhlibTests(unittest.TestCase):
|
|||
eq = self.assertEquals
|
||||
|
||||
mh.makefolder("dummy1")
|
||||
self.assert_("dummy1" in mh.listfolders())
|
||||
self.assertTrue("dummy1" in mh.listfolders())
|
||||
path = os.path.join(_mhpath, "dummy1")
|
||||
self.assert_(os.path.exists(path))
|
||||
self.assertTrue(os.path.exists(path))
|
||||
|
||||
f = mh.openfolder('dummy1')
|
||||
def create(n):
|
||||
|
@ -310,8 +310,8 @@ class MhlibTests(unittest.TestCase):
|
|||
|
||||
mh.deletefolder('dummy1')
|
||||
mh.deletefolder('dummy2')
|
||||
self.assert_('dummy1' not in mh.listfolders())
|
||||
self.assert_(not os.path.exists(path))
|
||||
self.assertTrue('dummy1' not in mh.listfolders())
|
||||
self.assertTrue(not os.path.exists(path))
|
||||
|
||||
def test_read(self):
|
||||
mh = getMH()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue