Deleted
Added
test_perl_application.py (894:c79252edf26f) | test_perl_application.py (916:a7034804fe9c) |
---|---|
1import unittest 2import unit 3 4class TestUnitPerlApplication(unit.TestUnitApplicationPerl): 5 6 def setUpClass(): 7 unit.TestUnit().check_modules('perl') 8 --- 171 unchanged lines hidden (view full) --- 180 resp = self.post(headers={ 181 'Connection': 'close', 182 'Content-Type': 'text/html', 183 'Host': 'localhost' 184 }, sock=sock, body='0123456789') 185 186 self.assertEqual(resp['body'], '0123456789', 'keep-alive 2') 187 | 1import unittest 2import unit 3 4class TestUnitPerlApplication(unit.TestUnitApplicationPerl): 5 6 def setUpClass(): 7 unit.TestUnit().check_modules('perl') 8 --- 171 unchanged lines hidden (view full) --- 180 resp = self.post(headers={ 181 'Connection': 'close', 182 'Content-Type': 'text/html', 183 'Host': 'localhost' 184 }, sock=sock, body='0123456789') 185 186 self.assertEqual(resp['body'], '0123456789', 'keep-alive 2') 187 |
188 @unittest.expectedFailure 189 def test_perl_body_io_fake(self): 190 self.load('body_io_fake') 191 192 self.assertEqual(self.get()['body'], '21', 'body io fake') 193 194 self.assertIsNotNone( 195 self.search_in_log(r'\[error\].+IOFake getline\(\) \$\/ is \d+'), 196 'body io fake $/ value') 197 198 self.assertIsNotNone( 199 self.search_in_log(r'\[error\].+IOFake close\(\) called'), 200 'body io fake close') 201 |
|
188if __name__ == '__main__': 189 TestUnitPerlApplication.main() | 202if __name__ == '__main__': 203 TestUnitPerlApplication.main() |