def test_ipv4(self):

        r1 = ipv4.IPRange("172.22.1.11/24", "172.22.1.21/24")
        r2 = ipv4.IPRange("172.22.1.21/24", "172.22.1.11/24")
        r3 = ipv4.IPRange("172.22.1.55/24", "172.22.1.55/24")

        l1 = list(r1)
        l2 = list(r2)
        print(l1)
        print(l1 == l2)
        print(r3, list(r3))

        ip = ipv4.IPv4("172.22.4.1/24")
        self.assertEqual(ip.mask, 0b11111111111111111111111100000000)
        print(ip.address)
        ip.address = "172.22.4.2/24"
        print(ip.address)
        ip.address = -1407843325
        print(ip.CIDR)

        ip = ipv4.IPv4("1.1.1.1/30")
        print(len(ip))
        print(len(ipv4.IPv4("1.1.1.1/29")))
        print(len(ipv4.IPv4("1.1.1.1/28")))
        print(len(ipv4.IPv4("1.1.1.1/24")))
        for each_ip in ip:
            print(each_ip)
        self.assertEqual(ip.mask, 0b11111111111111111111111111111100)
        self.assertEqual(ip.address, 0x01010101)
Set the icon on the underlying widget.
dataset/ETHPy150Open kdart/pycopia/core/test.py/CoreTests.test_ipv4--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_dock_item.py/QtDockItem.set_icon