def test_HTTPSDistributor_getBridges_same_bridges_to_same_client(self):
    'The same client asking for bridges from the HTTPSDistributor\n        multiple times in a row should get the same bridges in response each\n        time.\n        '
    dist = distributor.HTTPSDistributor(3, self.key)
    [dist.insert(bridge) for bridge in self.bridges[:250]]
    bridgeRequest = self.randomClientRequest()
    responses = {}
    for i in range(5):
        responses[i] = dist.getBridges(bridgeRequest, 1)
    for i in range(4):
        self.assertItemsEqual(responses[i], responses[(i + 1)])
The same client asking for bridges from the HTTPSDistributor
multiple times in a row should get the same bridges in response each
time.
def test_HTTPSDistributor_getBridges_same_bridges_to_same_client(self):
    'The same client asking for bridges from the HTTPSDistributor\n        multiple times in a row should get the same bridges in response each\n        time.\n        '
    dist = distributor.HTTPSDistributor(3, self.key)
    [dist.insert(bridge) for bridge in self.bridges[:250]]
    bridgeRequest = self.randomClientRequest()
    responses = {}
    for i in range(5):
        responses[i] = dist.getBridges(bridgeRequest, 1)
    for i in range(4):
        self.assertItemsEqual(responses[i], responses[(i + 1)])