def test_empty(self): self.device = Mock(**self.empty_output) standby_delay_obj = ShowStandbyDelay(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = standby_delay_obj.parse()
def test_golden(self): self.maxDiff = None self.device = Mock(**self.golden_output) standby_delay_obj = ShowStandbyDelay(device=self.device) parsed_output = standby_delay_obj.parse() self.assertEqual(parsed_output,self.golden_parsed_output)