diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-12-25 16:35:35 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-12-25 16:35:35 +0300 |
commit | d625691ff45bd6f352a504694629af2407a7d1a1 (patch) | |
tree | f07e4e6ac903cde472f277b74d1538a725adcafe /test/test_node_application.py | |
parent | f57e729a119660182d333f513b70b78177eb2b62 (diff) | |
download | unit-d625691ff45bd6f352a504694629af2407a7d1a1.tar.gz unit-d625691ff45bd6f352a504694629af2407a7d1a1.tar.bz2 |
Tests: test_node_application_write_before_writeHead reworked.
Added res.end() call in application and response status check.
Also, renamed to test_node_application_write_before_write_head.
Diffstat (limited to 'test/test_node_application.py')
-rw-r--r-- | test/test_node_application.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_node_application.py b/test/test_node_application.py index a9f5b8a3..05b518f5 100644 --- a/test/test_node_application.py +++ b/test/test_node_application.py @@ -120,10 +120,10 @@ class TestUnitNodeApplication(unit.TestUnitApplicationNode): self.assertTrue(self.waitforfiles(self.testdir + '/node/callback'), 'write callback') - def test_node_application_write_before_writeHead(self): + def test_node_application_write_before_write_head(self): self.load('write_before_write_head') - self.get() + self.assertEqual(self.get()['status'], 200, 'write before writeHead') def test_node_application_double_end(self): self.load('double_end') |