def test_show_ip_ospf_neighbor_detail_full1(self): super().test_show_ip_ospf_neighbor_detail_full1() self.maxDiff = None def mapper(key): return self.outputs[key] self.device.execute = Mock() self.device.execute.side_effect = mapper obj = ShowIpOspfNeighborDetail(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output1)
def test_show_ip_ospf_neighbor_detail_empty(self): self.maxDiff = None self.device = Mock(**self.empty_output) obj = ShowIpOspfNeighborDetail(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()