Exemple #1
0
 def test_output_3(self):
     self.dev1 = Mock(**self.output_3)
     obj = ShowDot1xAllDetails(device = self.dev1)
     parsed = obj.parse()
     self.assertEqual(parsed, self.parsed_output_3)
Exemple #2
0
 def test_empty_output(self):
     self.dev2 = Mock(**self.empty_output)
     obj = ShowDot1xAllDetails(device = self.dev2)
     with self.assertRaises(SchemaEmptyParserError):
         parsed = obj.parse()