summaryrefslogtreecommitdiffhomepage
path: root/test/test_configuration.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_configuration.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index 7d487e49..8d913077 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -3,6 +3,13 @@ import unittest
class TestUnitConfiguration(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_json_applications(self):
self.assertIn('error', self.put('/applications', '"{}"'),
'applications string')