Tests: adjusted check_version()'s.
This commit is contained in:
@@ -4,7 +4,10 @@ import unit
|
||||
class TestUnitConfiguration(unit.TestUnitControl):
|
||||
|
||||
def setUpClass():
|
||||
unit.TestUnit().check_modules('python')
|
||||
u = unit.TestUnit()
|
||||
|
||||
u.check_modules('python')
|
||||
u.check_version('0.5')
|
||||
|
||||
def test_json_leading_zero(self):
|
||||
self.assertIn('error', self.conf('00'), 'leading zero')
|
||||
|
||||
@@ -4,7 +4,10 @@ import unit
|
||||
class TestUnitBasic(unit.TestUnitControl):
|
||||
|
||||
def setUpClass():
|
||||
unit.TestUnit().check_modules('php')
|
||||
u = unit.TestUnit()
|
||||
|
||||
u.check_modules('php')
|
||||
u.check_version('0.5')
|
||||
|
||||
conf_app = {
|
||||
"app": {
|
||||
|
||||
@@ -7,7 +7,7 @@ class TestUnitApplication(unit.TestUnitControl):
|
||||
u = unit.TestUnit()
|
||||
|
||||
u.check_modules('python')
|
||||
u.check_version('0.4')
|
||||
u.check_version('0.5')
|
||||
|
||||
def conf_with_name(self, name):
|
||||
self.conf({
|
||||
|
||||
@@ -9,7 +9,7 @@ class TestUnitApplication(unit.TestUnitControl):
|
||||
u = unit.TestUnit()
|
||||
|
||||
u.check_modules('python')
|
||||
u.check_version('0.3')
|
||||
u.check_version('0.5')
|
||||
|
||||
def test_python_application(self):
|
||||
code, name = """
|
||||
|
||||
@@ -4,7 +4,10 @@ import unit
|
||||
class TestUnitBasic(unit.TestUnitControl):
|
||||
|
||||
def setUpClass():
|
||||
unit.TestUnit().check_modules('python')
|
||||
u = unit.TestUnit()
|
||||
|
||||
u.check_modules('python')
|
||||
u.check_version('0.5')
|
||||
|
||||
conf_app = {
|
||||
"app": {
|
||||
|
||||
@@ -7,7 +7,7 @@ class TestUnitApplication(unit.TestUnitControl):
|
||||
u = unit.TestUnit()
|
||||
|
||||
u.check_modules('python')
|
||||
u.check_version('0.4')
|
||||
u.check_version('0.5')
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_python_keepalive_body(self):
|
||||
|
||||
@@ -9,7 +9,7 @@ class TestUnitApplication(unit.TestUnitControl):
|
||||
u = unit.TestUnit()
|
||||
|
||||
u.check_modules('python')
|
||||
u.check_version('0.3')
|
||||
u.check_version('0.5')
|
||||
|
||||
def getWorkerCount(self):
|
||||
n = 0
|
||||
|
||||
Reference in New Issue
Block a user