def test_HTTPSDistributor_mapSubnetToSubring_with_proxies(self):
    "HTTPSDistributor.mapSubnetToSubring() when the client wasn't using\n        a proxy, but the distributor does have some known proxies and a\n        proxySubring, should not map the client to the proxy subhashring.\n        "
    dist = distributor.HTTPSDistributor(3, self.key, ProxySet(['1.1.1.1', '2.2.2.2']))
    subnet = '15.1.0.0/16'
    subring = dist.mapSubnetToSubring(subnet, usingProxy=False)
    self.assertNotEqual(subring, dist.proxySubring)
HTTPSDistributor.mapSubnetToSubring() when the client wasn't using
a proxy, but the distributor does have some known proxies and a
proxySubring, should not map the client to the proxy subhashring.
def test_HTTPSDistributor_mapSubnetToSubring_with_proxies(self):
    "HTTPSDistributor.mapSubnetToSubring() when the client wasn't using\n        a proxy, but the distributor does have some known proxies and a\n        proxySubring, should not map the client to the proxy subhashring.\n        "
    dist = distributor.HTTPSDistributor(3, self.key, ProxySet(['1.1.1.1', '2.2.2.2']))
    subnet = '15.1.0.0/16'
    subring = dist.mapSubnetToSubring(subnet, usingProxy=False)
    self.assertNotEqual(subring, dist.proxySubring)