summaryrefslogtreecommitdiffhomepage
path: root/test/test_node_application.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_node_application.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/test/test_node_application.py b/test/test_node_application.py
index 52ad72ee..59601ff0 100644
--- a/test/test_node_application.py
+++ b/test/test_node_application.py
@@ -9,13 +9,26 @@ from unit.utils import waitforfiles
class TestNodeApplication(TestApplicationNode):
prerequisites = {'modules': {'node': 'all'}}
- def test_node_application_basic(self):
- self.load('basic')
-
+ def assert_basic_application(self):
resp = self.get()
assert resp['headers']['Content-Type'] == 'text/plain', 'basic header'
assert resp['body'] == 'Hello World\n', 'basic body'
+ def test_node_application_basic(self):
+ self.load('basic')
+
+ self.assert_basic_application()
+
+ def test_node_application_require_shim_unit_http(self):
+ self.load('require_shim/unit_http')
+
+ self.assert_basic_application()
+
+ def test_node_application_require_shim_transitive_dependency(self):
+ self.load('require_shim/transitive_dependency')
+
+ self.assert_basic_application()
+
def test_node_application_seq(self):
self.load('basic')