

def it_should_send_ConnectionClose_with_no_exception(self):
    expected = spec.ConnectionClose(0, 'Connection closed by application', 0, 0)
    self.server.should_have_received_method(0, expected)

dataset/ETHPy150Open benjamin-hodgson/asynqp/test/connection_tests.py WhenTheApplicationClosesTheConnection.it_should_send_ConnectionClose_with_no_exception/original