Esempio n. 1
0
 def test_golden_asr1k(self):
     self.maxDiff = None
     self.dev_asr1k = Mock(**self.golden_output_asr1k)
     platform_obj = ShowPlatform(device=self.dev_asr1k)
     parsed_output = platform_obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output_asr1k)
Esempio n. 2
0
 def test_semi_empty(self):
     self.dev2 = Mock(**self.semi_empty_output)
     platform_obj = ShowPlatform(device=self.dev2)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = platform_obj.parse()