diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2010-09-18 17:45:55 -0300 |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2010-09-18 17:45:55 -0300 |
commit | 6f0fe8073bdb5493fd5401537da03798209fbf9c (patch) | |
tree | b91fbec748b95b531224486b6e8ebd6902a4b10c /mocker.py | |
parent | b64f0d59971eaa6f4d48ac3ebbad7eb867bec5f6 (diff) | |
download | mocker-6f0fe8073bdb5493fd5401537da03798209fbf9c.tar.gz |
Introduced the more natural reading assertIsNotInstance().
Diffstat (limited to 'mocker.py')
-rw-r--r-- | mocker.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -444,7 +444,8 @@ class MockerTestCase(unittest.TestCase): assertRaises = failUnlessRaises assertRaisesRegexp = failUnlessRaisesRegexp assertIsInstance = failUnlessIsInstance - assertNotIsInstance = failIfIsInstance + assertIsNotInstance = failIfIsInstance + assertNotIsInstance = failIfIsInstance # Poor choice in 2.7/3.2+. # The following are missing in Python < 2.4. assertTrue = unittest.TestCase.failUnless |