summaryrefslogtreecommitdiff
path: root/mock/tests/testmock.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-09-09 23:35:25 +0300
committerRobert Collins <rbtcollins@hp.com>2016-03-23 18:36:07 +1300
commitf40c660f75f6a25b6ff78dc4b71086cf17805f5d (patch)
tree29a1fe12288811ec6e092e6988fe47e7bac7e4ab /mock/tests/testmock.py
parent5efb4e504a6f4378dd65b825dd572d8e175ebd2e (diff)
downloadmock-f40c660f75f6a25b6ff78dc4b71086cf17805f5d.tar.gz
Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception. Patch by A Kaptur.
Diffstat (limited to 'mock/tests/testmock.py')
-rw-r--r--mock/tests/testmock.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mock/tests/testmock.py b/mock/tests/testmock.py
index d60f579..8ec9a60 100644
--- a/mock/tests/testmock.py
+++ b/mock/tests/testmock.py
@@ -326,6 +326,9 @@ class MockTest(unittest.TestCase):
self.assertEqual(mock.call_args,
((sentinel.Arg,), {"kw": sentinel.Kwarg}))
+ # Comparing call_args to a long sequence should not raise
+ # an exception. See issue 24857.
+ self.assertFalse(mock.call_args == "a long sequence")
def test_assert_called_with(self):
mock = Mock()