def test_show_vxlan_empty(self): self.device = Mock(**self.empty_output) obj = ShowVxlan(device=self.device) with self.assertRaises(SchemaEmptyParserError): parsed_output = obj.parse()
def test_show_vxlan_golden(self): self.device = Mock(**self.golden_output) obj = ShowVxlan(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output)