test_node_application.py (1029:687f7cc7aae2) test_node_application.py (1064:75a64629661f)
1import unittest
2from unit.applications.lang.node import TestApplicationNode
3
4
5class TestNodeApplication(TestApplicationNode):
6 prerequisites = ['node']
7
8 def test_node_application_basic(self):

--- 208 unchanged lines hidden (view full) ---

217 self.load('set_header_array')
218
219 self.assertListEqual(
220 self.get()['headers']['Set-Cookie'],
221 ['tc=one,two,three', 'tc=four,five,six'],
222 'set header array',
223 )
224
1import unittest
2from unit.applications.lang.node import TestApplicationNode
3
4
5class TestNodeApplication(TestApplicationNode):
6 prerequisites = ['node']
7
8 def test_node_application_basic(self):

--- 208 unchanged lines hidden (view full) ---

217 self.load('set_header_array')
218
219 self.assertListEqual(
220 self.get()['headers']['Set-Cookie'],
221 ['tc=one,two,three', 'tc=four,five,six'],
222 'set header array',
223 )
224
225 @unittest.expectedFailure
225 @unittest.skip('not yet')
226 def test_node_application_status_message(self):
227 self.load('status_message')
228
229 self.assertRegex(
230 self.get(raw_resp=True), r'200 blah', 'status message'
231 )
232
233 def test_node_application_get_header_type(self):

--- 94 unchanged lines hidden (view full) ---

328 body='callback2',
329 )
330
331 self.assertTrue(
332 self.waitforfiles(self.testdir + '/node/callback2'),
333 'promise second call',
334 )
335
226 def test_node_application_status_message(self):
227 self.load('status_message')
228
229 self.assertRegex(
230 self.get(raw_resp=True), r'200 blah', 'status message'
231 )
232
233 def test_node_application_get_header_type(self):

--- 94 unchanged lines hidden (view full) ---

328 body='callback2',
329 )
330
331 self.assertTrue(
332 self.waitforfiles(self.testdir + '/node/callback2'),
333 'promise second call',
334 )
335
336 @unittest.expectedFailure
336 @unittest.skip('not yet')
337 def test_node_application_header_name_valid(self):
338 self.load('header_name_valid')
339
340 self.assertNotIn('status', self.get(), 'header name valid')
341
342 def test_node_application_header_value_object(self):
343 self.load('header_value_object')
344

--- 48 unchanged lines hidden ---
337 def test_node_application_header_name_valid(self):
338 self.load('header_name_valid')
339
340 self.assertNotIn('status', self.get(), 'header name valid')
341
342 def test_node_application_header_value_object(self):
343 self.load('header_value_object')
344

--- 48 unchanged lines hidden ---