'This mocked method simply adds a peer to the DHT dictionary and invokes the callback.'

def get_peers(self, lookup_id, _, callback_f, bt_port=0):

    if (bt_port != 0):
        self.dht_dict[lookup_id] = (self.dht_dict.get(lookup_id, []) + [('127.0.0.1', bt_port)])
    callback_f(lookup_id, self.dht_dict.get(lookup_id, None), None)
