Exemplo n.º 1
0
 def test_empty(self):
     self.device1 = Mock(**self.empty_output)
     vlan_obj = ShowVlanFilter(device=self.device1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = vlan_obj.parse()
Exemplo n.º 2
0
 def test_golden(self):
     self.device = Mock(**self.golden_output)
     vlan_obj = ShowVlanFilter(device=self.device)
     parsed_output = vlan_obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output)