Beispiel #1
0
 def test_isnotsubset(self):
     ts2 = TrafficSelector(TrafficSelector.Type.TS_IPV4_ADDR_RANGE,
                           TrafficSelector.IpProtocol.TCP, 0, 10,
                           ip_address('192.168.1.1'),
                           ip_address('192.168.10.10'))
     self.assertFalse(ts2.is_subset(self.object))
Beispiel #2
0
 def test_issubnet(self):
     ts2 = TrafficSelector(TrafficSelector.Type.TS_IPV4_ADDR_RANGE,
                           TrafficSelector.IpProtocol.UDP, 4, 10,
                           ip_address('192.168.1.5'),
                           ip_address('192.168.10.10'))
     self.assertTrue(ts2.is_subset(self.object))