summaryrefslogtreecommitdiff
path: root/tests/testhelpers.py
diff options
context:
space:
mode:
authorMichael Foord <michael@voidspace.org.uk>2011-07-19 01:28:04 +0100
committerMichael Foord <michael@voidspace.org.uk>2011-07-19 01:28:04 +0100
commitdfd004a4e9955bcc14691790d994e16d32170602 (patch)
tree0957524da325af146b94410a868dc06800d69c07 /tests/testhelpers.py
parenteae4730121aaab14a4181426a6d36ad7b9430c62 (diff)
downloadmock-dfd004a4e9955bcc14691790d994e16d32170602.tar.gz
Implement __ne__ for callargs and call
Diffstat (limited to 'tests/testhelpers.py')
-rw-r--r--tests/testhelpers.py5
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):