summaryrefslogtreecommitdiffstats
path: root/unitest.py
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2016-03-06 17:24:15 +0100
committernicolargo <nicolashennion@gmail.com>2016-03-06 17:24:15 +0100
commitd6e1067e9f0dbf66f0e0ccb650fa53999d0ab786 (patch)
tree331e5c4733c5d2e61ae1f54dd24033e5aadf1b0e /unitest.py
parent5948260bb2731bda6f3478d56e9fe2ad1d0b1493 (diff)
Update unitest with FOLDERS and IP plugins (revert test on IP key)
Diffstat (limited to 'unitest.py')
-rwxr-xr-xunitest.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/unitest.py b/unitest.py
index 65824e15..87c850fd 100755
--- a/unitest.py
+++ b/unitest.py
@@ -187,15 +187,9 @@ class TestGlances(unittest.TestCase):
def test_012_ip(self):
"""Check IP plugin."""
- stats_to_check = ['address', 'mask']
print('INFO: [TEST_012] Check IP stats')
stats_grab = stats.get_plugin('ip').get_raw()
self.assertTrue(type(stats_grab) is dict, msg='IP stats is not a dict')
- for stat in stats_to_check:
- # Check that the key exist
- self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat)
- # Check that % is > 0
- self.assertGreaterEqual(stats_grab[stat], 0)
print('INFO: IP stats: %s' % stats_grab)
def test_099_output_bars_must_be_between_0_and_100_percent(self):