summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testhelpers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testhelpers.py b/tests/testhelpers.py
index 6e2530c..c9c4050 100644
--- a/tests/testhelpers.py
+++ b/tests/testhelpers.py
@@ -646,6 +646,11 @@ class SpecSignatureTest(unittest2.TestCase):
mock.assert_called_once_with()
self.assertRaises(TypeError, mock, 'a')
+ instance = mock()
+ self.assertRaises(TypeError, instance)
+ instance(a='a')
+ instance.assert_called_once_with(a='a')
+
mock = create_autospec(Callable())
mock(a='a')
mock.assert_called_once_with(a='a')