def when_consumer_is_closed_server_side(self): self.server.send_method(self.channel.id, spec.BasicCancel('made.up.tag', False)) self.tick()
def it_should_send_a_BasicCancel_method(self): self.server.should_have_received_method(self.channel.id, spec.BasicCancel(self.consumer.tag, False))