

def it_should_raise_error_in_connection_methods(self):
    exc = contexts.catch(self.wait_for, self.connection.open_channel())
    assert isinstance(exc, exceptions.ConnectionClosed)

dataset/ETHPy150Open benjamin-hodgson/asynqp/test/connection_tests.py WhenOpeningAChannelOnAClosedConnection.it_should_raise_error_in_connection_methods/original