diff options
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r-- | Lib/unittest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index ea9f5f6..9f5cea5e 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -881,8 +881,8 @@ class TestCase(object): self.fail(self._formatMessage(msg, standardMsg)) def assertDictEqual(self, d1, d2, msg=None): - self.assert_(isinstance(d1, dict), 'First argument is not a dictionary') - self.assert_(isinstance(d2, dict), 'Second argument is not a dictionary') + self.assertTrue(isinstance(d1, dict), 'First argument is not a dictionary') + self.assertTrue(isinstance(d2, dict), 'Second argument is not a dictionary') if d1 != d2: standardMsg = ('\n' + '\n'.join(difflib.ndiff( @@ -949,9 +949,9 @@ class TestCase(object): def assertMultiLineEqual(self, first, second, msg=None): """Assert that two multi-line strings are equal.""" - self.assert_(isinstance(first, str), ( + self.assertTrue(isinstance(first, str), ( 'First argument is not a string')) - self.assert_(isinstance(second, str), ( + self.assertTrue(isinstance(second, str), ( 'Second argument is not a string')) if first != second: |