def test_parsed_output_3(self): self.device = Mock(**self.golden_output_3) obj = ShowProcesses(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output_3)
def test_empty_output(self): self.device = Mock(**self.empty_output) obj = ShowProcesses(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse(process='isis')