Example #1
0
 def test_rules(self):
     assert len(get_ip_rules('-4')) == \
         len(self.ip.get_rules(socket.AF_INET))
     assert len(get_ip_rules('-6')) == \
         len(self.ip.get_rules(socket.AF_INET6))
Example #2
0
 def test_rules(self):
     assert len(get_ip_rules('-4')) == \
         len(self.ip.get_rules(socket.AF_INET))
     assert len(get_ip_rules('-6')) == \
         len(self.ip.get_rules(socket.AF_INET6))