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