aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/unittest/test/testmock/testhelpers.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-06 18:16:07 +0100
committerVictor Stinner <victor.stinner@gmail.com>2017-01-06 18:16:07 +0100
commitcd992bbe73dbbca356a94cf920f55012e5db689e (patch)
tree1277329e785fbf6a5f2fdf85b191d950b9dfa060 /Lib/unittest/test/testmock/testhelpers.py
parentb27df6faa5e5b92674cdf629615595cecd33d875 (diff)
parent84b6fb0eea29b3b28a1a11124526b01ec0c9d17a (diff)
downloadcpython-cd992bbe73dbbca356a94cf920f55012e5db689e.tar.gz
cpython-cd992bbe73dbbca356a94cf920f55012e5db689e.zip
Merge 3.6
Diffstat (limited to 'Lib/unittest/test/testmock/testhelpers.py')
-rw-r--r--Lib/unittest/test/testmock/testhelpers.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/unittest/test/testmock/testhelpers.py b/Lib/unittest/test/testmock/testhelpers.py
index 34776347daa..d5f9e7c1d69 100644
--- a/Lib/unittest/test/testmock/testhelpers.py
+++ b/Lib/unittest/test/testmock/testhelpers.py
@@ -306,6 +306,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):