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