test_python_application.py (760:18943cf07343) test_python_application.py (777:5d458b748dcf)
1import unittest
2import unit
3
4class TestUnitPythonApplication(unit.TestUnitApplicationPython):
5
6 def setUpClass():
7 unit.TestUnit().check_modules('python')
8

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

238 @unittest.expectedFailure
239 def test_python_application_input_iter(self):
240 self.load('input_iter')
241
242 body = '0123456789'
243
244 self.assertEqual(self.post(body=body)['body'], body, 'input iter')
245
1import unittest
2import unit
3
4class TestUnitPythonApplication(unit.TestUnitApplicationPython):
5
6 def setUpClass():
7 unit.TestUnit().check_modules('python')
8

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

238 @unittest.expectedFailure
239 def test_python_application_input_iter(self):
240 self.load('input_iter')
241
242 body = '0123456789'
243
244 self.assertEqual(self.post(body=body)['body'], body, 'input iter')
245
246 @unittest.expectedFailure
247 def test_python_application_input_read_length(self):
248 self.load('input_read_length')
249
250 body = '0123456789'
251
252 resp = self.post(headers={
253 'Host': 'localhost',
254 'Input-Length': '5',

--- 100 unchanged lines hidden ---
246 def test_python_application_input_read_length(self):
247 self.load('input_read_length')
248
249 body = '0123456789'
250
251 resp = self.post(headers={
252 'Host': 'localhost',
253 'Input-Length': '5',

--- 100 unchanged lines hidden ---