diff options
author | Michael Foord <michael@voidspace.org.uk> | 2011-07-19 01:28:04 +0100 |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2011-07-19 01:28:04 +0100 |
commit | dfd004a4e9955bcc14691790d994e16d32170602 (patch) | |
tree | 0957524da325af146b94410a868dc06800d69c07 /tests/testhelpers.py | |
parent | eae4730121aaab14a4181426a6d36ad7b9430c62 (diff) | |
download | mock-dfd004a4e9955bcc14691790d994e16d32170602.tar.gz |
Implement __ne__ for callargs and call
Diffstat (limited to 'tests/testhelpers.py')
-rw-r--r-- | tests/testhelpers.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testhelpers.py b/tests/testhelpers.py index 7fa4aa0..0db89ba 100644 --- a/tests/testhelpers.py +++ b/tests/testhelpers.py @@ -110,6 +110,11 @@ class CallargsTest(unittest2.TestCase): self.assertTrue(call(1, 2, 3) in [args]) + def test_callargs_ne(self): + self.assertFalse(callargs(((1, 2, 3),)) != call(1, 2, 3)) + self.assertTrue(callargs(((1, 2), {})) != call(1, 2, 3)) + + class CallTest(unittest2.TestCase): |