Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5aa3856

Browse files
authoredFeb 26, 2017
bpo-28961: Address my comments from earlier code review (python#305)
1 parent 160edb4 commit 5aa3856

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed
 

‎Lib/unittest/test/testmock/testhelpers.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -307,18 +307,9 @@ def test_two_args_call(self):
307307
self.assertEqual(args, other_args)
308308

309309
def test_call_with_name(self):
310-
self.assertEqual(
311-
'foo',
312-
_Call((), 'foo')[0],
313-
)
314-
self.assertEqual(
315-
'',
316-
_Call((('bar', 'barz'), ), )[0]
317-
)
318-
self.assertEqual(
319-
'',
320-
_Call((('bar', 'barz'), {'hello': 'world'}), )[0]
321-
)
310+
self.assertEqual(_Call((), 'foo')[0], 'foo')
311+
self.assertEqual(_Call((('bar', 'barz'),),)[0], '')
312+
self.assertEqual(_Call((('bar', 'barz'), {'hello': 'world'}),)[0], '')
322313

323314

324315
class SpecSignatureTest(unittest.TestCase):

0 commit comments

Comments
 (0)
Please sign in to comment.