remove unuseful assignement in tests

This commit is contained in:
Alan Boudreault
2017-05-24 21:29:56 -04:00
parent 87a4a60c52
commit b2448f25e1

View File

@@ -358,7 +358,6 @@ class ConnectionHeartbeatTest(unittest.TestCase):
self.assertEqual(max_connection.send_msg.call_count, 0)
self.assertEqual(max_connection.send_msg.call_count, 0)
max_connection.defunct.assert_has_calls([call(ANY)] * get_holders.call_count)
holder.shutdown_on_error = True
holder.return_connection.assert_has_calls(
[call(max_connection)] * get_holders.call_count)
@@ -388,7 +387,6 @@ class ConnectionHeartbeatTest(unittest.TestCase):
exc = connection.defunct.call_args_list[0][0][0]
self.assertIsInstance(exc, ConnectionException)
self.assertRegexpMatches(exc.args[0], r'^Received unexpected response to OptionsMessage.*')
holder.shutdown_on_error = True
holder.return_connection.assert_has_calls(
[call(connection)] * get_holders.call_count)
@@ -419,7 +417,6 @@ class ConnectionHeartbeatTest(unittest.TestCase):
self.assertIsInstance(exc, OperationTimedOut)
self.assertEqual(exc.errors, 'Connection heartbeat timeout after 0.05 seconds')
self.assertEqual(exc.last_host, 'localhost')
holder.shutdown_on_error = True
holder.return_connection.assert_has_calls(
[call(connection)] * get_holders.call_count)