def test_recv_cancel_ok_when_no_consumer_or_callback(self):
        frame = mock()
        expect(frame.args.read_shortstr).returns('ctag')
        expect(self.klass.logger.warning).args(
            'no callback registered for consumer tag " %s "', 'ctag')
        self.klass._cancel_cb = deque([None, mock()])

        self.klass._recv_cancel_ok(frame)
        assert_equals(1, len(self.klass._cancel_cb))
        assert_false(self.klass._cancel_cb in None)
dataset/ETHPy150Open agoragames/haigha/tests/unit/classes/basic_class_test.py/BasicClassTest.test_recv_cancel_ok_when_no_consumer_or_callback/swapped operands of `in`