Esempio n. 1
0
 def test_ipv6_not_contained(self):
     expected_results = False
     results = cgrep.check_encapsulated('network', 'RESERVED', 'LINKLOCAL',
                                        self.db)
     self.assertEquals(results, expected_results)
Esempio n. 2
0
 def test_ipv6_not_contained(self):
   expected_results = False
   results = cgrep.check_encapsulated('network', 'RESERVED', 'LINKLOCAL',
                                      self.db)
   self.assertEquals(results, expected_results)
Esempio n. 3
0
 def test_ip_contained(self):
     expected_results = True
     results = cgrep.check_encapsulated('network', 'RFC1918', 'RESERVED',
                                        self.db)
     self.assertEquals(results, expected_results)
Esempio n. 4
0
 def test_ip_contained(self):
   expected_results = True
   results = cgrep.check_encapsulated('network', 'RFC1918', 'RESERVED',
                                      self.db)
   self.assertEquals(results, expected_results)