def test_bucket_index_multiple_buckets(self):
        parent_node_id = '0xdeadbeef'
        r = RoutingTable(parent_node_id)
        r._split_bucket(0)
        split_point = int((2 ** 512) / 2)
        lower_key = split_point - 1
        higher_key = split_point + 1
        expected_lower_index = 0
        expected_higher_index = 1
        actual_lower_index = r._bucket_index(lower_key)
        actual_higher_index = r._bucket_index(higher_key)
        self.assertEqual(expected_lower_index, actual_lower_index)
        self.assertEqual(expected_higher_index, actual_higher_index)
Ensures the expected index is returned when multiple buckets exist.
dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_routingtable.py/TestRoutingTable.test_bucket_index_multiple_buckets