summaryrefslogtreecommitdiffhomepage
path: root/test/test_basic.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2017-12-06 15:36:05 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2017-12-06 15:36:05 +0300
commit3b6d3151f1396f71ca34f047ecb55eaff020ee1c (patch)
treefff314856f64fb15484ce9166b80312c8f338344 /test/test_basic.py
parent7ae5bef233d744f514427a33e1da531040d3fd6f (diff)
downloadunit-3b6d3151f1396f71ca34f047ecb55eaff020ee1c.tar.gz
unit-3b6d3151f1396f71ca34f047ecb55eaff020ee1c.tar.bz2
Tests: added basic PHP tests.
Diffstat (limited to '')
-rw-r--r--test/test_python_basic.py (renamed from test/test_basic.py)6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_basic.py b/test/test_python_basic.py
index ec893325..155407b7 100644
--- a/test/test_basic.py
+++ b/test/test_python_basic.py
@@ -10,7 +10,7 @@ class TestUnitBasic(unit.TestUnitControl):
if module_missed:
raise unittest.SkipTest('Unit has no ' + module_missed + ' module')
- def test_get(self):
+ def test_python_get(self):
resp = self.get()
self.assertEqual(resp, {'listeners': {}, 'applications': {}}, 'empty')
self.assertEqual(self.get('/listeners'), {}, 'empty listeners prefix')
@@ -78,7 +78,7 @@ class TestUnitBasic(unit.TestUnitControl):
self.assertEqual(self.get('/listeners/*:7080/application'), 'app',
'python listeners application')
- def test_put(self):
+ def test_python_put(self):
self.put('/', """
{
"listeners": {
@@ -138,7 +138,7 @@ class TestUnitBasic(unit.TestUnitControl):
self.assertEqual(self.get('/applications/app/path'), '/www',
'put applications path')
- def test_delete(self):
+ def test_python_delete(self):
self.put('/', """
{
"listeners": {