diff options
author | Michael Foord <michael@voidspace.org.uk> | 2011-01-23 19:31:07 +0000 |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2011-01-23 19:31:07 +0000 |
commit | fc4f069805a5928f763baf9bfcc6b7e1b9680a80 (patch) | |
tree | 7a323d83c3ee56bae6d41bb1a20de7d3bb856deb /tests/testsentinel.py | |
parent | c9e623aa18708be041450a6a4c93d0f6b608ee4c (diff) | |
download | mock-fc4f069805a5928f763baf9bfcc6b7e1b9680a80.tar.gz |
Fix recursion problem with mock.reset_mock when a mock is its own return value
Diffstat (limited to 'tests/testsentinel.py')
-rw-r--r-- | tests/testsentinel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testsentinel.py b/tests/testsentinel.py index 4c355d7..bb402b3 100644 --- a/tests/testsentinel.py +++ b/tests/testsentinel.py @@ -11,7 +11,7 @@ class SentinelTest(unittest2.TestCase): def testSentinels(self): self.assertEqual(sentinel.whatever, sentinel.whatever, 'sentinel not stored') - self.assertNotEquals(sentinel.whatever, sentinel.whateverelse, 'sentinel should be unique') + self.assertNotEqual(sentinel.whatever, sentinel.whateverelse, 'sentinel should be unique') def testSentinelName(self): |