summaryrefslogtreecommitdiffhomepage
path: root/test/test_basic.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_basic.py')
-rw-r--r--test/test_basic.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_basic.py b/test/test_basic.py
index e6a5c6e8..ec893325 100644
--- a/test/test_basic.py
+++ b/test/test_basic.py
@@ -3,6 +3,13 @@ import unittest
class TestUnitBasic(unit.TestUnitControl):
+ @classmethod
+ def setUpClass(cls):
+ u = unit.TestUnit()
+ module_missed = u.check_modules('python')
+ if module_missed:
+ raise unittest.SkipTest('Unit has no ' + module_missed + ' module')
+
def test_get(self):
resp = self.get()
self.assertEqual(resp, {'listeners': {}, 'applications': {}}, 'empty')