def test_run_check(self): api_url = '/api/cpu/percent/' api_args = {'check': '1'} result = nc.run_check(api_url, api_args) result_json = json.loads(result) self.assertIsInstance(result_json, dict) self.assertIn('value', result_json) self.assertIn('stdout', result_json['value']) self.assertIn('returncode', result_json['value'])