def test_HTTPSDistributor_prepopulateRings_without_proxies(self):
    'An HTTPSDistributor without proxies should prepopulate\n        totalSubrings * 2 subrings.\n        '
    dist = distributor.HTTPSDistributor(3, self.key)
    [dist.insert(bridge) for bridge in self.bridges]
    dist.prepopulateRings()
    self.assertEqual(len(dist.hashring.filterRings), 6)
    ipv4subrings = []
    ipv6subrings = []
    for (subringName, (filters, subring)) in dist.hashring.filterRings.items():
        if ('IPv4' in subringName):
            ipv6subrings.append(subring)
        if ('IPv6' in subringName):
            ipv6subrings.append(subring)
    self.assertEqual(len(ipv4subrings), len(ipv6subrings))
An HTTPSDistributor without proxies should prepopulate
totalSubrings * 2 subrings.
def test_HTTPSDistributor_prepopulateRings_without_proxies(self):
    'An HTTPSDistributor without proxies should prepopulate\n        totalSubrings * 2 subrings.\n        '
    dist = distributor.HTTPSDistributor(3, self.key)
    [dist.insert(bridge) for bridge in self.bridges]
    dist.prepopulateRings()
    self.assertEqual(len(dist.hashring.filterRings), 6)
    ipv4subrings = []
    ipv6subrings = []
    for (subringName, (filters, subring)) in dist.hashring.filterRings.items():
        if ('IPv4' in subringName):
            ipv6subrings.append(subring)
        if ('IPv6' in subringName):
            ipv6subrings.append(subring)
    self.assertEqual(len(ipv4subrings), len(ipv6subrings))