

def test_functional_basic_cancel(self):
    queue = 'test_functional_basic_cancel'
    try:
        self.channel.queue.declare(queue)
        consumer_tag = result.channel.basic.consume(None, queue)
        result = self.channel.basic.cancel(consumer_tag)
        self.assertEqual(result['consumer_tag'], consumer_tag)
    finally:
        self.channel.queue.delete(queue)

dataset/ETHPy150Open eandersson/amqpstorm/amqpstorm/tests/functional/basic_tests.py BasicFunctionalTests.test_functional_basic_cancel/VarMisuse@31/49 `self`->`result`