Ejemplo n.º 1
0
 def test_show_bgp_all_neighbors_advertised_routes_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowBgpAllNeighborsAdvertisedRoutes(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(neighbor='10.4.6.6')
Ejemplo n.º 2
0
 def test_show_bgp_all_neighbors_advertised_routes_golden(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output)
     obj = ShowBgpAllNeighborsAdvertisedRoutes(device=self.device)
     parsed_output = obj.parse(neighbor='21.0.0.2')
     self.assertEqual(parsed_output, self.golden_parsed_output)
Ejemplo n.º 3
0
 def TestShowBgpAllNeighborsAdvertisedRoutes_golden1(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output1)
     obj = ShowBgpAllNeighborsAdvertisedRoutes(device=self.device)
     parsed_output = obj.parse(neighbor='10.186.0.2')
     self.assertEqual(parsed_output, self.golden_parsed_output1)