def test_golden_vrf_vrf1(self): self.maxDiff = None self.device = Mock(**self.golden_output_2) obj = ShowIpProtocolsSectionRip(device=self.device) parsed_output = obj.parse(vrf="VRF1") self.assertEqual(parsed_output, self.golden_parsed_output_2)
def test_empty(self): self.device1 = Mock(**self.empty_output) obj = ShowIpProtocolsSectionRip(device=self.device1) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()