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