Visitar URL original
[3.6] bpo-28961: Address my comments from earlier code review by berkerpeksag · Pull Request #306 · python/cpython · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-28961: Address my comments from earlier code review
(cherry picked from commit dea1536)
  • Loading branch information
berkerpeksag committed Feb 26, 2017
commit 7c99a883072ec72fde2169360e856c6d1561c9cf
15 changes: 3 additions & 12 deletions Lib/unittest/test/testmock/testhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,18 +307,9 @@ def test_two_args_call(self):
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):
Expand Down