Skip to content

Commit

Permalink
tests: Fix typo in mock usage
Browse files Browse the repository at this point in the history
The error was made evident by a newer mock version that no longer
swallowed the wrong assert as regular use of a spec-less mock.
  • Loading branch information
jodal committed Jul 16, 2015
1 parent c69c686 commit 87bf261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mpd/protocol/test_connection.py
Expand Up @@ -10,7 +10,7 @@ class ConnectionHandlerTest(protocol.BaseTestCase):
def test_close_closes_the_client_connection(self):
with patch.object(self.session, 'close') as close_mock:
self.send_request('close')
close_mock.assertEqualResponsecalled_once_with()
close_mock.assert_called_once_with()
self.assertEqualResponse('OK')

def test_empty_request(self):
Expand Down

0 comments on commit 87bf261

Please sign in to comment.