Deleted
Added
test_perl_application.py (986:5658825b513f) | test_perl_application.py (988:135c158bc73e) |
---|---|
1import unittest 2import unit 3 4class TestUnitPerlApplication(unit.TestUnitApplicationPerl): 5 6 def setUpClass(): 7 unit.TestUnit().check_modules('perl') 8 --- 186 unchanged lines hidden (view full) --- 195 self.assertIsNotNone( 196 self.search_in_log(r'\[error\].+IOFake getline\(\) \$\/ is \d+'), 197 'body io fake $/ value') 198 199 self.assertIsNotNone( 200 self.search_in_log(r'\[error\].+IOFake close\(\) called'), 201 'body io fake close') 202 | 1import unittest 2import unit 3 4class TestUnitPerlApplication(unit.TestUnitApplicationPerl): 5 6 def setUpClass(): 7 unit.TestUnit().check_modules('perl') 8 --- 186 unchanged lines hidden (view full) --- 195 self.assertIsNotNone( 196 self.search_in_log(r'\[error\].+IOFake getline\(\) \$\/ is \d+'), 197 'body io fake $/ value') 198 199 self.assertIsNotNone( 200 self.search_in_log(r'\[error\].+IOFake close\(\) called'), 201 'body io fake close') 202 |
203 def test_perl_delayed_response(self): 204 self.load('delayed_response') 205 206 resp = self.get() 207 208 self.assertEqual(resp['status'], 200, 'status') 209 self.assertEqual(resp['body'], 'Hello World!', 'body') 210 211 def test_perl_streaming_body(self): 212 self.load('streaming_body') 213 214 resp = self.get() 215 216 self.assertEqual(resp['status'], 200, 'status') 217 self.assertEqual(resp['body'], 'Hello World!', 'body') 218 |
|
203if __name__ == '__main__': 204 TestUnitPerlApplication.main() | 219if __name__ == '__main__': 220 TestUnitPerlApplication.main() |