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))