def test_channel0_open_ok_frame(self): channel = Channel0(self.connection) self.assertFalse(self.connection.is_open) channel.on_frame(Connection.OpenOk()) self.assertTrue(self.connection.is_open)
def test_channel0_open_ok_frame(self): connection = amqpstorm.Connection('localhost', 'guest', 'guest', lazy=True) channel = Channel0(connection) self.assertFalse(connection.is_open) channel.on_frame(Connection.OpenOk()) self.assertTrue(connection.is_open)