def test_golden_1(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output_1)
     obj = ShowIpBgpTemplatePeerPolicy(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output_1)
 def test_golden_2(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output_2)
     obj = ShowIpBgpTemplatePeerPolicy(device=self.device)
     parsed_output = obj.parse(template_name='PEER-POLICY2')
     self.assertEqual(parsed_output, self.golden_parsed_output_2)
 def test_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowIpBgpTemplatePeerPolicy(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()