test_ruby_application.py (1017:887a4bbabf1e) test_ruby_application.py (1019:61d90b4da691)
1import unittest
1import unittest
2import unit
2from unit.applications.lang.ruby import TestApplicationRuby
3
4
3
4
5class TestUnitRubyApplication(unit.TestUnitApplicationRuby):
5class TestRubyApplication(TestApplicationRuby):
6 def setUpClass():
6 def setUpClass():
7 unit.TestUnit().check_modules('ruby')
7 TestApplicationRuby().check_modules('ruby')
8
9 def test_ruby_application(self):
10 self.load('variables')
11
12 body = 'Test body string.'
13
14 resp = self.post(
15 headers={

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

343 sock=sock,
344 body='0123456789',
345 )
346
347 self.assertEqual(resp['body'], '0123456789', 'keep-alive 2')
348
349
350if __name__ == '__main__':
8
9 def test_ruby_application(self):
10 self.load('variables')
11
12 body = 'Test body string.'
13
14 resp = self.post(
15 headers={

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

343 sock=sock,
344 body='0123456789',
345 )
346
347 self.assertEqual(resp['body'], '0123456789', 'keep-alive 2')
348
349
350if __name__ == '__main__':
351 TestUnitRubyApplication.main()
351 TestRubyApplication.main()