def test_golden(self): self.device = Mock(**self.golden_output) obj = ShowArpDetail(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output)
def test_golden_1(self): self.device = Mock(**self.golden_output_1) obj = ShowArpDetail(device=self.device) parsed_output = obj.parse(vrf='default') self.assertEqual(parsed_output, self.golden_parsed_output_1)
def test_empty(self): self.device1 = Mock(**self.empty_output) obj = ShowArpDetail(device=self.device1) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()