diff options
Diffstat (limited to 'mock/tests')
-rw-r--r-- | mock/tests/testhelpers.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mock/tests/testhelpers.py b/mock/tests/testhelpers.py index 66dbb3f..d402ca9 100644 --- a/mock/tests/testhelpers.py +++ b/mock/tests/testhelpers.py @@ -315,6 +315,20 @@ class CallTest(unittest.TestCase): other_args = _Call(((1, 2), {'a': 3})) self.assertEqual(args, other_args) + def test_call_with_name(self): + self.assertEqual( + 'foo', + _Call((), 'foo')[0], + ) + self.assertEqual( + '', + _Call((('bar', 'barz'), ), )[0] + ) + self.assertEqual( + '', + _Call((('bar', 'barz'), {'hello': 'world'}), )[0] + ) + class SpecSignatureTest(unittest.TestCase): |