Example #1
0
 def test_show_bgp_summary_golden2(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output2)
     obj = ShowBgpSummary(device=self.device)
     parsed_output = obj.parse(address_family='vpnv4 unicast',
                               vrf='L3VPN-0051')
     self.assertEqual(parsed_output, self.golden_parsed_output2)
Example #2
0
 def test_show_bgp_summary_empty(self):
     self.device1 = Mock(**self.empty_output)
     bgp_summary_obj = ShowBgpSummary(device=self.device1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = bgp_summary_obj.parse()
 def TestShowBgpSummary_golden1(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output1)
     obj = ShowBgpSummary(device=self.device)
     parsed_output = obj.parse(address_family='vpnv4 unicast', rd='5918:51')
     self.assertEqual(parsed_output, self.golden_parsed_output1)