@iterate(1000)
    def testRandomDisjoint(self):
        prefixes1 = [random_ipv4_prefix() for i in xrange(random.randrange(50))]
        prefixes2 = [random_ipv4_prefix() for i in xrange(random.randrange(50))]
        # test disjointnes the stupid way
        disjoint = True
        for p1, p2 in itertools.product(prefixes1, prefixes2):
            if p1 in p2 or p2 in p1:
                disjoint = False
                break
        ipset1 = IPy.IPSet(prefixes1)
        ipset2 = IPy.IPSet(prefixes2)
        self.assertEqual(ipset1.isdisjoint(ipset2), disjoint,
                "%s.isdisjoint(%s) != %s" % (ipset1, ipset2, disjoint))
        self.assertEqual(ipset2.isdisjoint(ipset1), disjoint,
                "%s.isdisjoint(%s) != %s" % (ipset2, ipset1, disjoint))
dataset/ETHPy150Open autocracy/python-ipy/test/test_fuzz.py/TestIPSet.testRandomDisjoint/original