def test_golden_output(self): self.maxDiff = None self.dev2 = Mock(**self.golden_output) obj = ShowIsisSegmentRoutingPrefixSidMap(device=self.dev2) parsed = obj.parse() self.assertEqual(parsed, self.golden_parsed_output)
def test_empty_output(self): self.device1 = Mock(**self.empty_output) obj = ShowIsisSegmentRoutingPrefixSidMap(device=self.device1) with self.assertRaises(SchemaEmptyParserError): parsed = obj.parse()