def test_show_bgp_all_neighbors_policy_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowBgpAllNeighborsPolicy(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(neighbor='10.4.6.6')
 def test_show_bgp_vrf_all_neighbors_policy_golden2(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output2)
     obj = ShowBgpAllNeighborsPolicy(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(neighbor='19.0.102.3')
 def test_show_bgp_all_neighbors_policy_golden3(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output3)
     obj = ShowBgpAllNeighborsPolicy(device=self.device)
     parsed_output = obj.parse(neighbor='10.4.6.6')
     self.assertEqual(parsed_output, self.golden_parsed_output3)
 def TestShowBgpAllNeighborsPolicy_golden(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output)
     obj = ShowBgpAllNeighborsPolicy(device=self.device)
     parsed_output = obj.parse(neighbor='10.186.0.2')
     self.assertEqual(parsed_output, self.golden_parsed_output)