def test_golden_4(self): self.device = Mock(**self.golden_output_4) obj = ShowVtpStatus(device=self.device) parsed_output = obj.parse() self.maxDiff = None self.assertEqual(parsed_output, self.golden_parsed_output_4)
def test_empty(self): self.device1 = Mock(**self.empty_output) obj = ShowVtpStatus(device=self.device1) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()