def test_HTTPSDistributor_getSubnet_usingProxy(self):
    'HTTPSDistributor.getSubnet(usingProxy=True) should return a proxy\n        group number.\n        '
    clientRequest = self.randomClientRequest()
    expectedGroup = ((int(ipaddr.IPAddress(clientRequest.client)) % 4) + 1)
    subnet = distributor.HTTPSDistributor.getSubnet(clientRequest.client, usingProxy=True)
    self.assertTrue(subnet.startswith('proxy-group-'))
    self.assertEqual(int(subnet[(- 1)]), expectedGroup)
HTTPSDistributor.getSubnet(usingProxy=True) should return a proxy
group number.
def test_HTTPSDistributor_getSubnet_usingProxy(self):
    'HTTPSDistributor.getSubnet(usingProxy=True) should return a proxy\n        group number.\n        '
    clientRequest = self.randomClientRequest()
    expectedGroup = ((int(ipaddr.IPAddress(clientRequest.client)) % 4) + 1)
    subnet = distributor.HTTPSDistributor.getSubnet(clientRequest.client, usingProxy=True)
    self.assertTrue(subnet.startswith('proxy-group-'))
    self.assertEqual(int(subnet[(- 1)]), expectedGroup)