diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-02-26 12:04:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-26 12:04:11 (GMT) |
commit | 5aa3856b4f325457e8ec1ccf669369f543e1f6b5 (patch) | |
tree | 495476dd41adc6afb03ff48b66b8519d0ea5bd97 /Lib/unittest | |
parent | 160edb43571311a3785785c1dfa784afc52d87be (diff) | |
download | cpython-5aa3856b4f325457e8ec1ccf669369f543e1f6b5.zip cpython-5aa3856b4f325457e8ec1ccf669369f543e1f6b5.tar.gz cpython-5aa3856b4f325457e8ec1ccf669369f543e1f6b5.tar.bz2 |
bpo-28961: Address my comments from earlier code review (#305)
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/test/testmock/testhelpers.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Lib/unittest/test/testmock/testhelpers.py b/Lib/unittest/test/testmock/testhelpers.py index d5f9e7c..d2202a7 100644 --- a/Lib/unittest/test/testmock/testhelpers.py +++ b/Lib/unittest/test/testmock/testhelpers.py @@ -307,18 +307,9 @@ class CallTest(unittest.TestCase): 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] - ) + self.assertEqual(_Call((), 'foo')[0], 'foo') + self.assertEqual(_Call((('bar', 'barz'),),)[0], '') + self.assertEqual(_Call((('bar', 'barz'), {'hello': 'world'}),)[0], '') class SpecSignatureTest(unittest.TestCase): |