def test_show_ip_ospf_interface_full2(self): super().test_show_ip_ospf_interface_full2() self.maxDiff = None def mapper(key): return self.outputs[key] self.device.execute = Mock() self.device.execute.side_effect = mapper obj = ShowIpOspfInterface(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output2)
def test_show_ip_ospf_interface_empty(self): self.maxDiff = None self.device = Mock(**self.empty_output) obj = ShowIpOspfInterface(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()