

def setUp(self):
    self.catcher = []
    observer = self.catcher.append
    log.addObserver(observer)
    self.addCleanup(log.removeObserver, observer)
    self.node = Node(digest('test'), '127.0.0.1', 1234)
    self.router = RoutingTable(observer, 20, self.node.id)

dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/market/tests/test_protocol.py MarketProtocolTest.setUp/VarMisuse@65/83 `self`->`observer`