def test_golden_4(self): self.maxDiff = None self.device = Mock(**self.golden_output_4) obj = ShowHsrpAll(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()
def test_empty(self): self.device = Mock(**self.empty_output) hsrp_all_obj = ShowHsrpAll(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = hsrp_all_obj.parse()
def test_golden_3(self): self.maxDiff = None self.device = Mock(**self.golden_output_3) hsrp_all_obj = ShowHsrpAll(device=self.device) parsed_output = hsrp_all_obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output_3)