def test_HTTPSDistributor_mapSubnetToSubring_usingProxy(self):
    'HTTPSDistributor.mapSubnetToSubring() when the client was using a\n        proxy should map the client to the proxy subhashring.\n        '
    dist = distributor.HTTPSDistributor(3, self.key, ProxySet(['1.1.1.1', '2.2.2.2']))
    subnet = 'proxy-group-3'
    subring = dist.mapSubnetToSubring(subnet, usingProxy=True)
    self.assertEqual(subring, dist.proxySubring)
HTTPSDistributor.mapSubnetToSubring() when the client was using a
proxy should map the client to the proxy subhashring.
def test_HTTPSDistributor_mapSubnetToSubring_usingProxy(self):
    'HTTPSDistributor.mapSubnetToSubring() when the client was using a\n        proxy should map the client to the proxy subhashring.\n        '
    dist = distributor.HTTPSDistributor(3, self.key, ProxySet(['1.1.1.1', '2.2.2.2']))
    subnet = 'proxy-group-3'
    subring = dist.mapSubnetToSubring(subnet, usingProxy=True)
    self.assertEqual(subring, dist.proxySubring)