diff options
author | nicolargo <nicolas@nicolargo.com> | 2017-05-14 11:46:23 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2017-05-14 11:46:23 +0200 |
commit | 089b3403be0cb078b91b73d421a7c86ac28a6457 (patch) | |
tree | d88b20c35338c5b28aef7059b9b40fa8b929fe77 | |
parent | 996414e82920b9aa508b9b8a2415b6ef192c7bf0 (diff) |
Update unitest with getViewsCpu
-rwxr-xr-x | unitest-xmlrpc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unitest-xmlrpc.py b/unitest-xmlrpc.py index 51530e56..e64cef74 100755 --- a/unitest-xmlrpc.py +++ b/unitest-xmlrpc.py @@ -182,6 +182,14 @@ class TestGlances(unittest.TestCase): req = json.loads(client.getIrq()) self.assertIsInstance(req, list) + def test_013_plugin_views(self): + """Plugin views.""" + method = "getViewsCpu()" + print('INFO: [TEST_013] Method: %s' % method) + + req = json.loads(client.getViewsCpu()) + self.assertIsInstance(req, dict) + def test_999_stop_server(self): """Stop the Glances Web Server.""" print('INFO: [TEST_999] Stop the Glances Server') |