def test_remove_contact_with_unknown_contact(self):
        parent_node_id = '0xdeadbeef'
        r = RoutingTable(parent_node_id)
        contact1 = PeerNode(PUBLIC_KEY, '192.168.0.1', 9999, self.version, 0)
        contact1.network_id = '0xa'
        r.add_contact(contact1)
        # Sanity check
        self.assertEqual(len(r._buckets[0]), 1)
        result = r.remove_contact('0xb')
        self.assertEqual(None, result)
        self.assertEqual(len(r._buckets[0]), 1)
        self.assertEqual(contact1, r._buckets[0]._contacts[0])
Stashes unstaged changes,
dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_routingtable.py/TestRoutingTable.test_remove_contact_with_unknown_contact--crossover with--dataset/ETHPy150Open kennethreitz/legit/legit/cli.py/cmd_resync