def test_ipv6_not_contained(self): expected_results = False results = cgrep.check_encapsulated('network', 'RESERVED', 'LINKLOCAL', self.db) self.assertEquals(results, expected_results)
def test_ip_contained(self): expected_results = True results = cgrep.check_encapsulated('network', 'RFC1918', 'RESERVED', self.db) self.assertEquals(results, expected_results)