summaryrefslogtreecommitdiffhomepage
path: root/test/test_php_basic.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-01-10 20:35:22 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-01-10 20:35:22 +0300
commit470948a0d65fb65ff58fc185af12e5ece8e1ae4c (patch)
tree3f5f84d9e5b561f0ed6128eb2ff2377914540ab5 /test/test_php_basic.py
parent8546d6d499b9700364bb23b923d022fca10fe00e (diff)
downloadunit-470948a0d65fb65ff58fc185af12e5ece8e1ae4c.tar.gz
unit-470948a0d65fb65ff58fc185af12e5ece8e1ae4c.tar.bz2
Tests: style.
Diffstat (limited to 'test/test_php_basic.py')
-rw-r--r--test/test_php_basic.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test_php_basic.py b/test/test_php_basic.py
index d4617ee6..fa1484a3 100644
--- a/test/test_php_basic.py
+++ b/test/test_php_basic.py
@@ -1,13 +1,10 @@
-import unit
import unittest
+import unit
class TestUnitBasic(unit.TestUnitControl):
def setUpClass():
- u = unit.TestUnit()
- module_missed = u.check_modules('php')
- if module_missed:
- raise unittest.SkipTest('Unit has no ' + module_missed + ' module')
+ unit.TestUnit().check_modules('php')
def test_php_get(self):
resp = self.get()