tests: Fix typo in mock usage

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.
This commit is contained in:
Stein Magnus Jodal 2015-07-16 21:30:22 +02:00 committed by Thomas Adamcik
parent ef9a393ba0
commit a1200d38f4

View File

@ -9,7 +9,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):