def test_add_contact_with_blacklisted_contact(self):
        parent_node_id = '0xdeadbeef'
        r = RoutingTable(parent_node_id)
        contact1 = PeerNode(PUBLIC_KEY, '192.168.0.1', 9999, 0)
        contact1.network_id = hex(2)
        contact2 = PeerNode(PUBLIC_KEY, '192.168.0.2', 9999, 0)
        contact2.network_id = hex(4)
        r.blacklist(contact2)
        r.add_contact(contact1)
        self.assertEqual(len(r._buckets[0]), 1)
        r.add_contact(contact2)
        self.assertEqual(len(r._buckets[0]), 1)
x.__cmp__(y) <==> cmp(x,y)
dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_routingtable.py/TestRoutingTable.test_add_contact_with_blacklisted_contact--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/OpenMayaCloth.py/new_instancemethod.__cmp__