def test_bound(self):
        exchange = Exchange('foo', 'direct')
        self.assertFalse(exchange.is_bound)
        self.assertIn('<unbound', repr(exchange))

        chan = get_conn().channel()
        bound = exchange.bind(chan)
        self.assertTrue(bound.is_bound)
        self.assertIs(bound.channel, chan)
        self.assertIn((chan.channel_id,) % 'bound to chan:%r',
                      repr(bound))
dataset/ETHPy150Open celery/kombu/kombu/tests/test_entities.py/test_Exchange.test_bound/swapped operands of `%`