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