

def test_MarketProtocol_add_listener_correctly(self):
    mp = MarketProtocol(0, 0, 0, 0)
    self.assertEqual(len(mp.listeners), 0)
    mp.add_listener(3)
    mp.assertEqual(len(mp.listeners), 1)

dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/market/tests/test_protocol.py MarketProtocolTest.test_MarketProtocol_add_listener_correctly/VarMisuse@44/55 `self`->`mp`