コード例 #1
0
 def test_show_monitor_empty(self):
     self.maxDiff = None
     self.device = Mock(**self.empty_output)
     obj = ShowMonitor(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()
コード例 #2
0
 def test_show_monitor_golden4(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output4)
     obj = ShowMonitor(device=self.device)
     parsed_output = obj.parse(session='1')
     self.assertEqual(parsed_output, self.golden_parsed_output4)