def assertConnectionStatus(self, connection, expected_status):
message = self._connection_failure_message(connection, expected_status)<EOL>self.assertEquals(connection.response.status_code, expected_status, message)<EOL>
Check if the connection has expected status