Pull requests

#1 Merged
Repository
aodag aodag
Branch
trunk
Repository
bbangert bbangert
Branch
trunk

fix error on webob 1.2.3

Author
  1. Atsushi Odagiri
Reviewers
Description

I ran test with webob 1.2.3, then I got errors below.

====================================================================== ERROR: test_mimetypes.test_root_path


Traceback (most recent call last): File "/home/aodag/.env/webhelpers/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/aodag/works/webhelpers/tests/test_mimetypes.py", line 36, in test_root_path eq_(m.mimetype('text/html'), 'text/html') File "/home/aodag/works/webhelpers/webhelpers/mimehelper.py", line 114, in mimetype self.env['HTTP_ACCEPT']) TypeError: init() takes exactly 2 arguments (3 given)

====================================================================== ERROR: test_mimetypes.test_with_extension


Traceback (most recent call last): File "/home/aodag/.env/webhelpers/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/aodag/works/webhelpers/tests/test_mimetypes.py", line 44, in test_with_extension eq_(m.mimetype('text/html'), False) File "/home/aodag/works/webhelpers/webhelpers/mimehelper.py", line 114, in mimetype self.env['HTTP_ACCEPT']) TypeError: init() takes exactly 2 arguments (3 given)

====================================================================== ERROR: test_mimetypes.test_with_unregistered_extention


Traceback (most recent call last): File "/home/aodag/.env/webhelpers/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/aodag/works/webhelpers/tests/test_mimetypes.py", line 53, in test_with_unregistered_extention eq_(m.mimetype('text/html'), False) File "/home/aodag/works/webhelpers/webhelpers/mimehelper.py", line 114, in mimetype self.env['HTTP_ACCEPT']) TypeError: init() takes exactly 2 arguments (3 given)

====================================================================== ERROR: test_mimetypes.test_with_no_extention


Traceback (most recent call last): File "/home/aodag/.env/webhelpers/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/aodag/works/webhelpers/tests/test_mimetypes.py", line 62, in test_with_no_extention eq_(m.mimetype('text/html'), False) File "/home/aodag/works/webhelpers/webhelpers/mimehelper.py", line 114, in mimetype self.env['HTTP_ACCEPT']) TypeError: init() takes exactly 2 arguments (3 given)

====================================================================== ERROR: test_mimetypes.test_with_text_star_accept


Traceback (most recent call last): File "/home/aodag/.env/webhelpers/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/aodag/works/webhelpers/tests/test_mimetypes.py", line 78, in test_with_text_star_accept eq_(m.mimetype('text/html'), 'text/html') File "/home/aodag/works/webhelpers/webhelpers/mimehelper.py", line 114, in mimetype self.env['HTTP_ACCEPT']) TypeError: init() takes exactly 2 arguments (3 given)

====================================================================== ERROR: test_mimetypes.test_with_star_star_accept


Traceback (most recent call last): File "/home/aodag/.env/webhelpers/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/aodag/works/webhelpers/tests/test_mimetypes.py", line 86, in test_with_star_star_accept eq_(m.mimetype('application/xml'), 'application/xml') File "/home/aodag/works/webhelpers/webhelpers/mimehelper.py", line 114, in mimetype self.env['HTTP_ACCEPT']) TypeError: init() takes exactly 2 arguments (3 given)


Comments (1)