Running tests in pytoolkit/trunk... F..... ====================================================================== FAIL: Test all possible types of fuzzy strings generated with the fuzzy_time_since(). ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/pytoolkit/trunk/pytoolkit/test_conversion.py", line 36, in test_different_branches self.assert_('vk sitten' in fuzzy_time_since(datetime.datetime(now.year, now.month-1, 1))) AssertionError ---------------------------------------------------------------------- Ran 6 tests in 0.009s FAILED (failures=1) Running tests in calendero/trunk/calendero/calendero/tests... /home/laura/svn/calendero/trunk/calendero/calendero/model/__init__.py:9: DeprecationWarning: pylons.database is deprecated, and will be removed from a future version of Pylons. SQLAlchemy 0.3.x users are recommended to migrate to SAContext (http://cheeseshop.python.org/pypi/SAContext) for similar functionality from pylons.database import session_context as ctx Running setup_config() from calendero.websetup ................E...........EEE.EE...................................................ERROR:calendero.controllers.login:ALERT: [unknown] tried to send new password for a non-existing user valid_uSerNämåöÖ ERROR:calendero.controllers.login:ALERT: [unknown] tried to send new password for a non-existing user valid_uSerNämåöÖ E..........ERROR:calendero.controllers.picture:User 382 does not have rights to edit picture 47 ERROR:calendero.controllers.picture:User 382 does not have rights to edit picture 47 ERROR:calendero.controllers.picture:Anonymous tried to delete picture 45 ERROR:calendero.controllers.picture:User 382 does not have rights to edit picture 47 ERROR:calendero.controllers.picture:User 382 does not have rights to delete picture 47 .............ERROR:calendero.controllers.sms:user with login xc34c34 not found ERROR:calendero.controllers.sms:user with login xc32c32 not found .......... ====================================================================== ERROR: test_calendar_buying (calendero.tests.functional.test_buying.TestBuying) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_buying.py", line 80, in test_calendar_buying cal = self._create_test_cal(name='expensive shitty calendar', price=self.price_class.id) File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/__init__.py", line 96, in _create_test_cal response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: Changes properties of created calendar and removes it after changes. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 129, in test_changing_properties_and_delete response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: test_changing_properties_and_deleting_without_rights (calendero.tests.functional.test_calendar.TestCalendarController) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 165, in test_changing_properties_and_deleting_without_rights not_my_cal2 = self._create_test_cal(name='private calender of user 0', public=False, price=None) File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/__init__.py", line 96, in _create_test_cal response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: Test adding comments to a calendar. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 351, in test_commenting response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: Test rating calendar. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 236, in test_rating_calendar response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: Test adding tags to calendar. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 273, in test_tags response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: test_password_sending (calendero.tests.functional.test_login.TestLoginController) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_login.py", line 102, in test_password_sending response = form.submit() File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 1084, in submit params=fields, **args) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 767, in goto return method(href, **args) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 258, in post expect_errors=expect_errors) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 239, in _gen_request return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/decorators/__init__.py", line 191, in wrapper return func(self, *args, **kwargs) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/login.py", line 115, in send_password _(u"New password to the 24 days service").encode('utf8'), text, encoding='utf8') File "/home/laura/svn/pytoolkit/trunk/pytoolkit/mail.py", line 24, in send_mail s.connect() File "smtplib.py", line 310, in connect raise socket.error, msg error: (111, 'Connection refused') ---------------------------------------------------------------------- Ran 119 tests in 28.813s FAILED (errors=7) Validating XHTML... validating: http://localhost:8000/front validating: http://localhost:8000/registration *** Errors validating /tmp/tmp.nYjky11767: *** Error at line 1, character 1: missing document type declaration; assuming HTML 4.01 Transitional validating: http://localhost:8000/login/missing_password validating: http://localhost:8000/calendar/list?categ=public&sort=latest *** Errors validating /tmp/tmp.sqMfl11777: *** Error at line 112, character 9: end tag for "ul" which is not finished