============================= test session starts ============================== platform linux2 -- Python 2.6.4 -- pytest-1.3.1 test object 1: /home/ree/workspace/moin-2.0-dev MoinMoin/_tests/test_Page.py S MoinMoin/_tests/test_caching.py .....F. MoinMoin/_tests/test_error.py .... MoinMoin/_tests/test_sourcecode.py ................................................................................ MoinMoin/_tests/test_test_environ.py FFFF MoinMoin/_tests/test_user.py ..EEEEEEEEEEEEEEEE.... MoinMoin/_tests/test_wikiutil.py ..F...FF....................................................................................................................FFFFFFFF..FFFFF.................................... MoinMoin/auth/_tests/test_auth.py E MoinMoin/auth/_tests/test_ldap_login.py .FF.F MoinMoin/config/_tests/test_configs.py . MoinMoin/config/_tests/test_multiconfig.py F MoinMoin/converter2/_tests/test__args.py ....... MoinMoin/converter2/_tests/test__args_wiki.py .... MoinMoin/converter2/_tests/test__wiki_macro.py ............................ MoinMoin/converter2/_tests/test_creole_in.py .........FF..................................................................... MoinMoin/converter2/_tests/test_docbook_in.py ....................................................................... MoinMoin/converter2/_tests/test_docbook_out.py ................................ MoinMoin/converter2/_tests/test_html_in.py ................................................. MoinMoin/converter2/_tests/test_html_in_out.py .............................................. MoinMoin/converter2/_tests/test_html_out.py ..................................................FF MoinMoin/converter2/_tests/test_include.py . MoinMoin/converter2/_tests/test_link.py .....FFFFFF MoinMoin/converter2/_tests/test_mediawiki_in.py ..........F....F..F........ MoinMoin/converter2/_tests/test_moinwiki19_in.py ..F.......ss..................................................................... MoinMoin/converter2/_tests/test_moinwiki_in.py ......ss..................................................................... MoinMoin/converter2/_tests/test_moinwiki_in_out.py ..F..........F..F......FFFFF.F..FF.FFFF.F...F..FFFFF MoinMoin/converter2/_tests/test_moinwiki_out.py .................................................F MoinMoin/converter2/_tests/test_rst_in.py ................................. MoinMoin/converter2/_tests/test_rst_out.py ........................................... MoinMoin/converter2/_tests/test_smiley.py ......... MoinMoin/datastruct/backends/_tests/test_composite_dicts.py FFFF MoinMoin/datastruct/backends/_tests/test_composite_groups.py FFFFFFFFFEEEE MoinMoin/datastruct/backends/_tests/test_config_dicts.py FFFF MoinMoin/datastruct/backends/_tests/test_config_groups.py FFFFFFFFF MoinMoin/datastruct/backends/_tests/test_lazy_config_groups.py FFFFFFFF.FFFFFFFFF MoinMoin/datastruct/backends/_tests/test_wiki_dicts.py EEEE MoinMoin/datastruct/backends/_tests/test_wiki_groups.py S MoinMoin/events/_tests/test_events.py S MoinMoin/filter/_tests/test_filter.py .... MoinMoin/formatter/_tests/test_groups.py S MoinMoin/items/_tests/test_Item.py FFFFFF MoinMoin/macro2/_tests/test__base.py S MoinMoin/mail/_tests/test_sendmail.py ......... MoinMoin/search/_tests/test_search.py S MoinMoin/search/_tests/test_terms.py .......................................................................................................................................................................................... MoinMoin/search/_tests/test_wiki_analyzer.py S MoinMoin/security/_tests/test_security.py .................EEEE MoinMoin/storage/_tests/test_backends_flatfile.py S MoinMoin/storage/_tests/test_backends_fs19.py ................. MoinMoin/storage/_tests/test_backends_sqla.py .......... MoinMoin/storage/_tests/test_middleware_acl.py E MoinMoin/storage/_tests/test_serialization.py FFF.. MoinMoin/support/pytz/tests/test_docs.py E MoinMoin/support/pytz/tests/test_tzinfo.py .................................................................................................................................................................. MoinMoin/theme/_tests/test_editbar_actions.py EEEE MoinMoin/theme/_tests/test_navi_bar.py EEEEEEE MoinMoin/util/_tests/test_diff3.py . MoinMoin/util/_tests/test_diff_text.py . MoinMoin/util/_tests/test_filesys.py ....s...... MoinMoin/util/_tests/test_iri.py .................. MoinMoin/util/_tests/test_lock.py .......... MoinMoin/util/_tests/test_mime.py ..... MoinMoin/util/_tests/test_pysupport.py ...ss MoinMoin/util/_tests/test_registry.py .. MoinMoin/util/_tests/test_tree.py .... MoinMoin/util/_tests/test_util.py .. MoinMoin/util/_tests/test_web.py ...... MoinMoin/web/_tests/test_utils.py .ss MoinMoin/widget/_tests/test_DataBrowserWidget.py EEEEEEE MoinMoin/widget/_tests/test_html.py ... ==================================== ERRORS ==================================== __________ ERROR at setup of TestLoginWithPassword.testAsciiPassword ___________ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:43,919 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,919 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,920 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,920 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,920 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,930 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,931 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,931 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,942 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,943 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,943 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,943 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,944 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,944 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,954 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,954 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,955 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,966 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,966 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,966 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,966 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,967 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,977 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,977 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,977 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,994 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,995 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,995 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,995 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,996 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,996 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,006 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,006 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,006 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________ ERROR at teardown of TestLoginWithPassword.testAsciiPassword _________ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError _________ ERROR at setup of TestLoginWithPassword.testUnicodePassword __________ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:44,032 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,032 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,032 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,032 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,033 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,043 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,043 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,044 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:44,054 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:44,055 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,056 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,056 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,056 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,057 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,067 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,067 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,068 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________ ERROR at teardown of TestLoginWithPassword.testUnicodePassword ________ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError ____ ERROR at setup of TestLoginWithPassword.testSubscriptionSubscribedPage ____ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:44,091 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,092 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,092 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,092 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,093 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,109 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,109 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,110 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:44,121 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:44,122 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,123 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,123 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,123 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,124 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,134 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,135 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,135 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __ ERROR at teardown of TestLoginWithPassword.testSubscriptionSubscribedPage ___ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError _______ ERROR at setup of TestLoginWithPassword.testSubscriptionSubPage ________ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:44,159 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,159 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,160 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,160 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,160 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,171 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,172 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,172 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:44,184 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:44,185 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,185 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,186 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,186 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,186 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,197 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,198 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,198 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______ ERROR at teardown of TestLoginWithPassword.testSubscriptionSubPage ______ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError ____________ ERROR at setup of TestLoginWithPassword.testRenameUser ____________ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:44,222 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,223 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,223 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,224 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,224 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,240 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,241 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,241 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:44,253 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:44,254 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,255 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,255 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,255 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,256 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,267 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,267 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,268 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________ ERROR at teardown of TestLoginWithPassword.testRenameUser ___________ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError ___ ERROR at setup of TestLoginWithPassword.test_upgrade_password_to_salted ____ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:44,292 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,293 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,293 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,293 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,294 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,305 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,305 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,306 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:44,318 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:44,320 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,320 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,320 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,321 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,321 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,333 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,333 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,334 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __ ERROR at teardown of TestLoginWithPassword.test_upgrade_password_to_salted __ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError ___ ERROR at setup of TestLoginWithPassword.test_for_email_attribute_by_name ___ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:44,358 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,358 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,359 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,359 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,360 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,376 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,377 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,377 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:44,389 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:44,391 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,391 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,392 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,392 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,393 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,403 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,404 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,404 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _ ERROR at teardown of TestLoginWithPassword.test_for_email_attribute_by_name __ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError ____ ERROR at setup of TestLoginWithPassword.test_for_email_attribut_by_uid ____ self = method = > def setup_method(self, method): # Save original user and cookie self.saved_cookie = self.request.cookies > self.saved_user = self.request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/test_user.py:41: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:44,429 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,429 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,430 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,430 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,431 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,441 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,442 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,443 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:44,456 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:44,457 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:44,458 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:44,458 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:44,459 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:44,459 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:44,471 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:44,471 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:44,472 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __ ERROR at teardown of TestLoginWithPassword.test_for_email_attribut_by_uid ___ self = method = > def teardown_method(self, method): """ Run after each test Remove user and reset user listing cache. """ # Remove user file and user > if self.user is not None: E AttributeError: 'TestLoginWithPassword' object has no attribute 'user' MoinMoin/_tests/test_user.py:55: AttributeError ERROR during collection /home/ree/workspace/moin-2.0-dev/MoinMoin/auth/_tests/test_auth.py MoinMoin/auth/_tests/test_auth.py:11: in > from MoinMoin import wsgiapp E ImportError: cannot import name wsgiapp ______________ ERROR at setup of TestCompositeGroup.test_getitem _______________ self = method = > def setup_method(self, method): > self.groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/test_composite_groups.py:58: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,647 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,647 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,648 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,648 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,649 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,660 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,660 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,661 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,672 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,674 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,674 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,675 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,676 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,676 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,687 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,687 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,688 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,700 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,700 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,701 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,701 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,702 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,712 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,713 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,714 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,725 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,726 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,727 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,727 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,728 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,728 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,739 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,740 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,740 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________ ERROR at setup of TestCompositeGroup.test_clashed_getitem ___________ self = method = > def setup_method(self, method): > self.groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/test_composite_groups.py:58: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,774 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,775 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,776 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,777 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,777 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,788 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,788 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,789 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,802 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,803 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,804 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,804 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,805 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,806 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,817 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,817 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,818 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________ ERROR at setup of TestCompositeGroup.test_iter ________________ self = method = > def setup_method(self, method): > self.groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/test_composite_groups.py:58: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,839 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,839 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,840 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,841 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,841 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,852 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,853 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,854 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,865 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,867 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,868 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,868 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,869 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,869 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,880 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,881 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,881 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________ ERROR at setup of TestCompositeGroup.test_contains ______________ self = method = > def setup_method(self, method): > self.groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/test_composite_groups.py:58: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,908 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,909 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,910 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,911 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,911 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,922 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,923 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,924 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,935 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,937 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,938 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,938 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,939 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,940 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,950 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,951 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,952 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________ ERROR at setup of TestWikiDictsBackend.test_getitem ______________ self = def wrapper(self, *args, **kwargs): self.request = init_test_request(given_config) # Don't forget to call the class' setup_method if it has one. > return f(self, *args, **kwargs) MoinMoin/conftest.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = method = > def setup_method(self, method): request = self.request > become_trusted(request) MoinMoin/datastruct/backends/_tests/test_wiki_dicts.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,764 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,766 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,767 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,767 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,768 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,781 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,782 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,783 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,800 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,802 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,803 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,803 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,804 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,805 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,816 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,817 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,817 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,829 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,830 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,831 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,831 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,832 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,843 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,844 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,844 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,856 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,858 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,859 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,859 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,860 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,861 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,872 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,872 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,873 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________ ERROR at setup of TestWikiDictsBackend.test_contains _____________ self = def wrapper(self, *args, **kwargs): self.request = init_test_request(given_config) # Don't forget to call the class' setup_method if it has one. > return f(self, *args, **kwargs) MoinMoin/conftest.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = method = > def setup_method(self, method): request = self.request > become_trusted(request) MoinMoin/datastruct/backends/_tests/test_wiki_dicts.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,902 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,902 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,903 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,904 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,905 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,920 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,921 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,922 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,934 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,936 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,937 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,937 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,938 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,939 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,949 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,950 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,951 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________ ERROR at setup of TestWikiDictsBackend.test_update ______________ self = def wrapper(self, *args, **kwargs): self.request = init_test_request(given_config) # Don't forget to call the class' setup_method if it has one. > return f(self, *args, **kwargs) MoinMoin/conftest.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = method = > def setup_method(self, method): request = self.request > become_trusted(request) MoinMoin/datastruct/backends/_tests/test_wiki_dicts.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,975 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,976 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,976 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,977 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,978 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,990 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,991 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,992 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:15,004 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:15,006 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:15,007 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:15,007 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:15,008 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:15,009 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:15,020 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:15,021 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:15,022 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________ ERROR at setup of TestWikiDictsBackend.test_get ________________ self = def wrapper(self, *args, **kwargs): self.request = init_test_request(given_config) # Don't forget to call the class' setup_method if it has one. > return f(self, *args, **kwargs) MoinMoin/conftest.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = method = > def setup_method(self, method): request = self.request > become_trusted(request) MoinMoin/datastruct/backends/_tests/test_wiki_dicts.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:15,046 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:15,047 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:15,047 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:15,048 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:15,049 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:15,067 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:15,068 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:15,068 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:15,080 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:15,081 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:15,082 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:15,083 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:15,084 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:15,085 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:15,097 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:15,097 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:15,098 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________ ERROR at setup of TestAcl.testApplyACLByUser _________________ self = method = > def setup_method(self, method): # Backup user > self.savedUser = self.request.user.name E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/security/_tests/test_security.py:199: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:22,569 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,570 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,571 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,572 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,573 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,584 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,585 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,586 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,598 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:22,599 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,600 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,601 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,602 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,603 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,621 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,622 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,623 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,635 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,636 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,637 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,638 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,639 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,650 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,651 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,652 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,663 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:22,665 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,666 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,667 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,668 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,669 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,679 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,680 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,681 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________ ERROR at teardown of TestAcl.testApplyACLByUser ________________ self = method = > def teardown_method(self, method): # Restore user > self.request.user.name = self.savedUser E AttributeError: 'TestAcl' object has no attribute 'savedUser' MoinMoin/security/_tests/test_security.py:203: AttributeError ERROR during collection /home/ree/workspace/moin-2.0-dev/MoinMoin/security/_tests/test_security.py MoinMoin/security/_tests/test_security.py:293: in setup_method > become_trusted(self.request, username=u'WikiAdmin') MoinMoin/_tests/__init__.py:37: in become_trusted > become_valid(request, username) MoinMoin/_tests/__init__.py:30: in become_valid > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:22,711 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,712 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,713 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,713 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,714 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,725 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,726 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,727 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,744 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:22,746 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,747 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,747 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,748 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,749 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,760 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,761 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,762 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,774 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,775 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,776 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,777 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,778 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,788 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,789 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,790 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,802 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:22,804 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,805 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,806 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,806 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,807 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,818 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,819 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,820 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ERROR during collection /home/ree/workspace/moin-2.0-dev/MoinMoin/security/_tests/test_security.py MoinMoin/security/_tests/test_security.py:373: in setup_method > become_trusted(self.request, username=u'WikiAdmin') MoinMoin/_tests/__init__.py:37: in become_trusted > become_valid(request, username) MoinMoin/_tests/__init__.py:30: in become_valid > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:22,842 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,843 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,843 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,844 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,845 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,856 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,857 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,858 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,875 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:22,877 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,878 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,878 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,879 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,880 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,891 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,892 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,893 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,904 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,905 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,906 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,907 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,908 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,918 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,919 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,920 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:22,931 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:22,933 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:22,934 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:22,938 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:22,939 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:22,940 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:22,950 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:22,951 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:22,952 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ERROR during collection /home/ree/workspace/moin-2.0-dev/MoinMoin/storage/_tests/test_middleware_acl.py MoinMoin/storage/_tests/test_middleware_acl.py:11: in > from MoinMoin.wsgiapp import protect_backends E ImportError: No module named wsgiapp ERROR during collection /home/ree/workspace/moin-2.0-dev/MoinMoin/support/pytz/tests/test_docs.py MoinMoin/support/pytz/tests/test_docs.py:21: in > raise RuntimeError('README.txt not found') E RuntimeError: README.txt not found _____ ERROR at setup of TestEditBarActions.test_editbar_for_anonymous_user _____ self = method = > def setup_method(self, method): > self.savedValid = self.request.user.valid E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/_tests/test_editbar_actions.py:18: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:45,731 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:45,732 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:45,733 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:45,734 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:45,735 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:45,746 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:45,747 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:45,749 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:45,761 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:45,763 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:45,764 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:45,765 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:45,766 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:45,767 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:45,779 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:45,780 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:45,781 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:45,793 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:45,794 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:45,795 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:45,796 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:45,797 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:45,808 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:45,809 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:45,810 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:45,822 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:45,824 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:45,825 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:45,826 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:45,827 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:45,828 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:45,848 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:45,849 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:45,850 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___ ERROR at teardown of TestEditBarActions.test_editbar_for_anonymous_user ____ self = method = > def teardown_method(self, method): > self.request.user.valid = self.savedValid E AttributeError: 'TestEditBarActions' object has no attribute 'savedValid' MoinMoin/theme/_tests/test_editbar_actions.py:25: AttributeError _______ ERROR at setup of TestEditBarActions.test_editbar_for_valid_user _______ self = method = > def setup_method(self, method): > self.savedValid = self.request.user.valid E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/_tests/test_editbar_actions.py:18: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:45,881 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:45,882 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:45,882 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:45,883 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:45,884 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:45,896 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:45,897 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:45,898 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:45,910 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:45,912 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:45,913 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:45,914 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:45,915 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:45,916 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:45,928 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:45,929 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:45,930 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____ ERROR at teardown of TestEditBarActions.test_editbar_for_valid_user ______ self = method = > def teardown_method(self, method): > self.request.user.valid = self.savedValid E AttributeError: 'TestEditBarActions' object has no attribute 'savedValid' MoinMoin/theme/_tests/test_editbar_actions.py:25: AttributeError _________________ ERROR at setup of TestNaviBar.test_itemname __________________ self = method = > def setup_method(self, method): > self.theme = ThemeBase(self.request) MoinMoin/theme/_tests/test_navi_bar.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def __init__(self, request): """ Initialize the theme object. @param request: the request object """ self.request = request self.cfg = request.cfg > self.user = request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/__init__.py:86: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:45,963 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:45,964 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:45,965 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:45,966 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:45,967 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:45,978 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:45,979 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:45,980 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:45,998 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,000 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,001 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,002 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,003 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,004 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,016 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,017 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,018 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,030 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,031 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,032 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,033 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,034 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,045 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,046 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,047 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,059 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,061 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,062 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,063 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,064 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,065 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,076 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,078 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,079 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____________ ERROR at setup of TestNaviBar.test_itemname_with_text _____________ self = method = > def setup_method(self, method): > self.theme = ThemeBase(self.request) MoinMoin/theme/_tests/test_navi_bar.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def __init__(self, request): """ Initialize the theme object. @param request: the request object """ self.request = request self.cfg = request.cfg > self.user = request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/__init__.py:86: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:46,104 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,105 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,106 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,107 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,108 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,119 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,121 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,122 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,140 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,142 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,143 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,144 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,145 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,146 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,157 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,158 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,159 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________ ERROR at setup of TestNaviBar.test_interwiki _________________ self = method = > def setup_method(self, method): > self.theme = ThemeBase(self.request) MoinMoin/theme/_tests/test_navi_bar.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def __init__(self, request): """ Initialize the theme object. @param request: the request object """ self.request = request self.cfg = request.cfg > self.user = request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/__init__.py:86: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:46,181 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,182 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,183 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,184 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,185 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,196 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,198 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,199 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,210 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,212 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,213 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,214 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,216 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,217 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,228 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,229 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,231 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____________ ERROR at setup of TestNaviBar.test_interwiki_with_text ____________ self = method = > def setup_method(self, method): > self.theme = ThemeBase(self.request) MoinMoin/theme/_tests/test_navi_bar.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def __init__(self, request): """ Initialize the theme object. @param request: the request object """ self.request = request self.cfg = request.cfg > self.user = request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/__init__.py:86: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:46,253 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,254 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,255 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,256 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,257 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,268 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,270 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,271 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,289 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,291 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,292 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,293 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,294 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,295 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,307 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,309 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,310 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________ ERROR at setup of TestNaviBar.test_wiki_interwiki_with_text __________ self = method = > def setup_method(self, method): > self.theme = ThemeBase(self.request) MoinMoin/theme/_tests/test_navi_bar.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def __init__(self, request): """ Initialize the theme object. @param request: the request object """ self.request = request self.cfg = request.cfg > self.user = request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/__init__.py:86: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:46,331 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,332 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,333 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,334 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,336 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,347 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,349 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,350 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,362 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,364 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,365 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,367 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,368 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,369 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,380 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,381 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,383 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________ ERROR at setup of TestNaviBar.test_external_url ________________ self = method = > def setup_method(self, method): > self.theme = ThemeBase(self.request) MoinMoin/theme/_tests/test_navi_bar.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def __init__(self, request): """ Initialize the theme object. @param request: the request object """ self.request = request self.cfg = request.cfg > self.user = request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/__init__.py:86: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:46,404 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,405 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,406 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,408 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,409 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,420 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,422 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,423 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,441 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,443 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,444 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,445 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,446 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,448 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,459 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,460 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,462 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________ ERROR at setup of TestNaviBar.test_external_url_with_title __________ self = method = > def setup_method(self, method): > self.theme = ThemeBase(self.request) MoinMoin/theme/_tests/test_navi_bar.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def __init__(self, request): """ Initialize the theme object. @param request: the request object """ self.request = request self.cfg = request.cfg > self.user = request.user E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/theme/__init__.py:86: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:46,483 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,484 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,486 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,487 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,488 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,500 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,502 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,503 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:46,515 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:46,517 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:46,519 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:46,520 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:46,522 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:46,523 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:46,534 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:46,536 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:46,537 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____ ERROR at setup of Test_DataBrowserWidget_sort_table.test_tablecreation ____ self = def setup_class(self): # check if state of example changes during tests example = [['L1', (u'c', u'c'), (u'1', u'1'), (u'2', u'2'), (u'a', u'a'), (u'4', u'4'), (u'5', u'5')], ['L2', (u'b', u'b'), (u'10', u'10'), (u'21', u'21'), (u'B', u'B'), (u'40', u'40'), (u'10', u'10')], ['L3', (u'b', u'b'), (u'2', u'2'), (u'3.14', u'3.14'), (u'c', u'c'), (u'54', u'54'), (u'50', u'50')], ['L4', (u'b', u'b'), (u'90', u'90'), (u'-2.240', u'-2.240'), (u'D', u'D'), (u'40', u'40'), (u'5', u'5')], ['L5', (u'a', u'a'), (u'95', u'95'), (u'20', u'20'), (u'e', u'e'), (u'40', u'40'), (u'10', u'10')], ] self.example = example data = TupleDataset() data.columns = [] data.columns.extend([Column('TEST', label='TEST')]) for line in self.example: data.addRow([line[0]] + line[1:]) data.columns.extend([Column(line[0], label=line[0])]) self.data = data > self.table = DataBrowserWidget(self.request) MoinMoin/widget/_tests/test_DataBrowserWidget.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , show_header = True def __init__(self, request, show_header=True, **kw): > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/widget/browser.py:53: AttributeError ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:59,476 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:59,478 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:59,480 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:59,481 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:59,482 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:59,495 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:59,496 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:59,498 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:59,510 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:59,512 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:59,514 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:59,515 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:59,516 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:59,518 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:59,530 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:59,531 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:59,533 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ERROR at setup of Test_DataBrowserWidget_sort_table.test_sort_one_column_alphas self = def setup_class(self): # check if state of example changes during tests example = [['L1', (u'c', u'c'), (u'1', u'1'), (u'2', u'2'), (u'a', u'a'), (u'4', u'4'), (u'5', u'5')], ['L2', (u'b', u'b'), (u'10', u'10'), (u'21', u'21'), (u'B', u'B'), (u'40', u'40'), (u'10', u'10')], ['L3', (u'b', u'b'), (u'2', u'2'), (u'3.14', u'3.14'), (u'c', u'c'), (u'54', u'54'), (u'50', u'50')], ['L4', (u'b', u'b'), (u'90', u'90'), (u'-2.240', u'-2.240'), (u'D', u'D'), (u'40', u'40'), (u'5', u'5')], ['L5', (u'a', u'a'), (u'95', u'95'), (u'20', u'20'), (u'e', u'e'), (u'40', u'40'), (u'10', u'10')], ] self.example = example data = TupleDataset() data.columns = [] data.columns.extend([Column('TEST', label='TEST')]) for line in self.example: data.addRow([line[0]] + line[1:]) data.columns.extend([Column(line[0], label=line[0])]) self.data = data > self.table = DataBrowserWidget(self.request) MoinMoin/widget/_tests/test_DataBrowserWidget.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , show_header = True def __init__(self, request, show_header=True, **kw): > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/widget/browser.py:53: AttributeError ERROR at setup of Test_DataBrowserWidget_sort_table.test_sort_one_column_integers self = def setup_class(self): # check if state of example changes during tests example = [['L1', (u'c', u'c'), (u'1', u'1'), (u'2', u'2'), (u'a', u'a'), (u'4', u'4'), (u'5', u'5')], ['L2', (u'b', u'b'), (u'10', u'10'), (u'21', u'21'), (u'B', u'B'), (u'40', u'40'), (u'10', u'10')], ['L3', (u'b', u'b'), (u'2', u'2'), (u'3.14', u'3.14'), (u'c', u'c'), (u'54', u'54'), (u'50', u'50')], ['L4', (u'b', u'b'), (u'90', u'90'), (u'-2.240', u'-2.240'), (u'D', u'D'), (u'40', u'40'), (u'5', u'5')], ['L5', (u'a', u'a'), (u'95', u'95'), (u'20', u'20'), (u'e', u'e'), (u'40', u'40'), (u'10', u'10')], ] self.example = example data = TupleDataset() data.columns = [] data.columns.extend([Column('TEST', label='TEST')]) for line in self.example: data.addRow([line[0]] + line[1:]) data.columns.extend([Column(line[0], label=line[0])]) self.data = data > self.table = DataBrowserWidget(self.request) MoinMoin/widget/_tests/test_DataBrowserWidget.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , show_header = True def __init__(self, request, show_header=True, **kw): > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/widget/browser.py:53: AttributeError ERROR at setup of Test_DataBrowserWidget_sort_table.test_sort_one_column_floats self = def setup_class(self): # check if state of example changes during tests example = [['L1', (u'c', u'c'), (u'1', u'1'), (u'2', u'2'), (u'a', u'a'), (u'4', u'4'), (u'5', u'5')], ['L2', (u'b', u'b'), (u'10', u'10'), (u'21', u'21'), (u'B', u'B'), (u'40', u'40'), (u'10', u'10')], ['L3', (u'b', u'b'), (u'2', u'2'), (u'3.14', u'3.14'), (u'c', u'c'), (u'54', u'54'), (u'50', u'50')], ['L4', (u'b', u'b'), (u'90', u'90'), (u'-2.240', u'-2.240'), (u'D', u'D'), (u'40', u'40'), (u'5', u'5')], ['L5', (u'a', u'a'), (u'95', u'95'), (u'20', u'20'), (u'e', u'e'), (u'40', u'40'), (u'10', u'10')], ] self.example = example data = TupleDataset() data.columns = [] data.columns.extend([Column('TEST', label='TEST')]) for line in self.example: data.addRow([line[0]] + line[1:]) data.columns.extend([Column(line[0], label=line[0])]) self.data = data > self.table = DataBrowserWidget(self.request) MoinMoin/widget/_tests/test_DataBrowserWidget.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , show_header = True def __init__(self, request, show_header=True, **kw): > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/widget/browser.py:53: AttributeError _______ ERROR at setup of Test_DataBrowserWidget_sort_table.test_n_sort ________ self = def setup_class(self): # check if state of example changes during tests example = [['L1', (u'c', u'c'), (u'1', u'1'), (u'2', u'2'), (u'a', u'a'), (u'4', u'4'), (u'5', u'5')], ['L2', (u'b', u'b'), (u'10', u'10'), (u'21', u'21'), (u'B', u'B'), (u'40', u'40'), (u'10', u'10')], ['L3', (u'b', u'b'), (u'2', u'2'), (u'3.14', u'3.14'), (u'c', u'c'), (u'54', u'54'), (u'50', u'50')], ['L4', (u'b', u'b'), (u'90', u'90'), (u'-2.240', u'-2.240'), (u'D', u'D'), (u'40', u'40'), (u'5', u'5')], ['L5', (u'a', u'a'), (u'95', u'95'), (u'20', u'20'), (u'e', u'e'), (u'40', u'40'), (u'10', u'10')], ] self.example = example data = TupleDataset() data.columns = [] data.columns.extend([Column('TEST', label='TEST')]) for line in self.example: data.addRow([line[0]] + line[1:]) data.columns.extend([Column(line[0], label=line[0])]) self.data = data > self.table = DataBrowserWidget(self.request) MoinMoin/widget/_tests/test_DataBrowserWidget.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , show_header = True def __init__(self, request, show_header=True, **kw): > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/widget/browser.py:53: AttributeError ____ ERROR at setup of Test_DataBrowserWidget_sort_table.test_reverse_sort _____ self = def setup_class(self): # check if state of example changes during tests example = [['L1', (u'c', u'c'), (u'1', u'1'), (u'2', u'2'), (u'a', u'a'), (u'4', u'4'), (u'5', u'5')], ['L2', (u'b', u'b'), (u'10', u'10'), (u'21', u'21'), (u'B', u'B'), (u'40', u'40'), (u'10', u'10')], ['L3', (u'b', u'b'), (u'2', u'2'), (u'3.14', u'3.14'), (u'c', u'c'), (u'54', u'54'), (u'50', u'50')], ['L4', (u'b', u'b'), (u'90', u'90'), (u'-2.240', u'-2.240'), (u'D', u'D'), (u'40', u'40'), (u'5', u'5')], ['L5', (u'a', u'a'), (u'95', u'95'), (u'20', u'20'), (u'e', u'e'), (u'40', u'40'), (u'10', u'10')], ] self.example = example data = TupleDataset() data.columns = [] data.columns.extend([Column('TEST', label='TEST')]) for line in self.example: data.addRow([line[0]] + line[1:]) data.columns.extend([Column(line[0], label=line[0])]) self.data = data > self.table = DataBrowserWidget(self.request) MoinMoin/widget/_tests/test_DataBrowserWidget.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , show_header = True def __init__(self, request, show_header=True, **kw): > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/widget/browser.py:53: AttributeError ERROR at setup of Test_DataBrowserWidget_sort_table.test_sort_and_reverse_by_a_different_column self = def setup_class(self): # check if state of example changes during tests example = [['L1', (u'c', u'c'), (u'1', u'1'), (u'2', u'2'), (u'a', u'a'), (u'4', u'4'), (u'5', u'5')], ['L2', (u'b', u'b'), (u'10', u'10'), (u'21', u'21'), (u'B', u'B'), (u'40', u'40'), (u'10', u'10')], ['L3', (u'b', u'b'), (u'2', u'2'), (u'3.14', u'3.14'), (u'c', u'c'), (u'54', u'54'), (u'50', u'50')], ['L4', (u'b', u'b'), (u'90', u'90'), (u'-2.240', u'-2.240'), (u'D', u'D'), (u'40', u'40'), (u'5', u'5')], ['L5', (u'a', u'a'), (u'95', u'95'), (u'20', u'20'), (u'e', u'e'), (u'40', u'40'), (u'10', u'10')], ] self.example = example data = TupleDataset() data.columns = [] data.columns.extend([Column('TEST', label='TEST')]) for line in self.example: data.addRow([line[0]] + line[1:]) data.columns.extend([Column(line[0], label=line[0])]) self.data = data > self.table = DataBrowserWidget(self.request) MoinMoin/widget/_tests/test_DataBrowserWidget.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , show_header = True def __init__(self, request, show_header=True, **kw): > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/widget/browser.py:53: AttributeError =================================== FAILURES =================================== ________________________ TestCaching.test_update_needed ________________________ self = def test_update_needed(self): """ test update check) """ test_data1 = u'does not matter' test_data2 = u'something else' page_name = u'Caching_TestPage' > become_trusted(self.request) MoinMoin/_tests/test_caching.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:36,560 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:36,561 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:36,561 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:36,561 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:36,561 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:36,573 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:36,573 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:36,574 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:36,585 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:36,586 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:36,586 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:36,587 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:36,587 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:36,587 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:36,599 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:36,599 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:36,600 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________ TestStorageEnvironWithoutConfig.test_fresh_backends ______________ self = def test_fresh_backends(self): assert self.class_level_value == 123 > assert isinstance(self.request.cfg, wikiconfig.Config) E assert isinstance(, ) E + where = .cfg E + where = .request E + and = wikiconfig.Config MoinMoin/_tests/test_test_environ.py:23: AssertionError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:43,296 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,296 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,297 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,297 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,297 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,308 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,308 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,309 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,420 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,422 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,422 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,422 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,422 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,422 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,433 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,433 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,433 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,445 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,445 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,445 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,446 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,446 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,456 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,456 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,457 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,468 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,469 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,469 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,469 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,470 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,470 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,480 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,481 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,481 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________ TestStorageEnvironWithoutConfig.test_twice __________________ self = def test_fresh_backends(self): assert self.class_level_value == 123 > assert isinstance(self.request.cfg, wikiconfig.Config) E assert isinstance(, ) E + where = .cfg E + where = .request E + and = wikiconfig.Config MoinMoin/_tests/test_test_environ.py:23: AssertionError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:43,505 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,505 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,505 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,505 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,506 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,522 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,522 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,523 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,533 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,534 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,535 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,535 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,535 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,535 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,546 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,546 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,546 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________ TestStorageEnvironWithConfig.test_fresh_backends_with_content _________ self = def test_fresh_backends_with_content(self): > assert isinstance(self.request.cfg, wikiconfig.Config) E assert isinstance(, ) E + where = .cfg E + where = .request E + and = wikiconfig.Config MoinMoin/_tests/test_test_environ.py:55: AssertionError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:43,570 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,570 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,570 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,570 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,571 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,582 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,582 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,582 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,593 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,594 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,594 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,595 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,595 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,595 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,605 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,606 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,606 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,618 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,618 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,619 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,619 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,619 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,635 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,636 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,636 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,647 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,648 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,649 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,649 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,649 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,649 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,660 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,660 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,661 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________________ TestStorageEnvironWithConfig.test_twice ____________________ self = def test_fresh_backends_with_content(self): > assert isinstance(self.request.cfg, wikiconfig.Config) E assert isinstance(, ) E + where = .cfg E + where = .request E + and = wikiconfig.Config MoinMoin/_tests/test_test_environ.py:55: AssertionError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:43,682 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,682 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,682 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,682 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,683 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,694 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,694 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,694 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:43,706 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:43,707 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:43,707 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:43,707 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:43,708 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:43,708 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:43,719 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:43,719 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:43,719 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________________________ TestTickets.testTickets ____________________________ self = def testTickets(self): from MoinMoin.Page import Page # page name with double quotes > self.request.page = Page(self.request, u'bla"bla') MoinMoin/_tests/test_wikiutil.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , page_name = u'bla"bla' formatter = None def __init__(self, request, page_name, formatter=None, **kw): """ Create page object. Note that this is a 'lean' operation, since the text for the page is loaded on demand. Thus, things like `Page(name).link_to()` are efficient. @param page_name: WikiName of the page @keyword rev: number of older revision @keyword formatter: mimetype str, None or no kw arg will use default mimetype @keyword include_self: if 1, include current user (default: 0) """ self.request = request self.cfg = request.cfg self.page_name = page_name self.rev = kw.get('rev', -1) # revision of this page self.include_self = kw.get('include_self', 0) if isinstance(formatter, basestring): # mimetype given mimetype = str(formatter) else: mimetype = 'text/html' self.output_mimetype = mimetype self.default_formatter = mimetype == "text/html" self.output_charset = config.charset # correct for wiki pages self._page_name_force = None self.hilite_re = None > self._backend = request.storage E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/Page.py:69: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:45,258 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,259 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,260 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,260 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,261 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,271 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,272 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,273 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:45,284 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:45,286 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,286 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,287 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,287 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,288 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,299 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,299 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,300 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:45,312 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,313 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,313 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,313 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,314 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,324 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,325 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,326 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:45,343 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:45,344 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,345 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,346 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,346 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,347 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,357 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,358 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,358 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________ TestInterWiki.testResolveInterWiki ______________________ self = def testResolveInterWiki(self): > result = wikiutil.resolve_interwiki(self.request, 'MoinMoin', 'SomePage') MoinMoin/_tests/test_wikiutil.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , wikiname = 'MoinMoin' pagename = 'SomePage' def resolve_interwiki(request, wikiname, pagename): """ Resolve an interwiki reference (wikiname:pagename). @param request: the request object @param wikiname: interwiki wiki name @param pagename: interwiki page name @rtype: tuple @return: (wikitag, wikiurl, wikitail, err) """ > _interwiki_list = load_wikimap(request) MoinMoin/wikiutil.py:550: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = def load_wikimap(request): """ load interwiki map (once, and only on demand) """ from MoinMoin.Page import Page now = int(time.time()) if getattr(request.cfg, "shared_intermap_files", None) is None: generate_file_list(request) try: _interwiki_list = request.cfg.cache.interwiki_list old_mtime = request.cfg.cache.interwiki_mtime if request.cfg.cache.interwiki_ts + (1*60) < now: # 1 minutes caching time max_mtime = get_max_mtime(request.cfg.shared_intermap_files, Page(request, INTERWIKI_PAGE)) if max_mtime > old_mtime: raise AttributeError # refresh cache else: request.cfg.cache.interwiki_ts = now except AttributeError: _interwiki_list = {} lines = [] for filename in request.cfg.shared_intermap_files: f = codecs.open(filename, "r", config.charset) lines.extend(f.readlines()) f.close() # add the contents of the InterWikiMap page > lines += Page(request, INTERWIKI_PAGE).get_raw_body().splitlines() MoinMoin/wikiutil.py:496: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , page_name = 'InterWikiMap' formatter = None def __init__(self, request, page_name, formatter=None, **kw): """ Create page object. Note that this is a 'lean' operation, since the text for the page is loaded on demand. Thus, things like `Page(name).link_to()` are efficient. @param page_name: WikiName of the page @keyword rev: number of older revision @keyword formatter: mimetype str, None or no kw arg will use default mimetype @keyword include_self: if 1, include current user (default: 0) """ self.request = request self.cfg = request.cfg self.page_name = page_name self.rev = kw.get('rev', -1) # revision of this page self.include_self = kw.get('include_self', 0) if isinstance(formatter, basestring): # mimetype given mimetype = str(formatter) else: mimetype = 'text/html' self.output_mimetype = mimetype self.default_formatter = mimetype == "text/html" self.output_charset = config.charset # correct for wiki pages self._page_name_force = None self.hilite_re = None > self._backend = request.storage E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/Page.py:69: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:45,678 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,678 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,679 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,679 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,680 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,696 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,697 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,698 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:45,709 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:45,711 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,711 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,712 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,712 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,713 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,723 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,724 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,724 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________________ TestSystemPage.testSystemPage _________________________ self = def testSystemPage(self): """wikiutil: good system page names accepted, bad rejected""" for name in self.systemPages: > assert wikiutil.isSystemPage(self.request, name) MoinMoin/_tests/test_wikiutil.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , pagename = 'HelpOnMoinWikiSyntax' def isSystemPage(request, pagename): """ Is this a system page? @param request: the request object @param pagename: the page name @rtype: bool @return: true if page is a system page """ from MoinMoin.items import IS_SYSPAGE try: > item = request.storage.get_item(pagename) E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/wikiutil.py:588: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:45,756 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,757 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,758 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,758 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,759 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,770 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,770 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,771 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:45,782 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:45,784 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,784 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,785 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,785 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,786 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,796 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,797 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,798 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:45,811 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,811 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,812 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,812 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,813 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,831 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,831 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,832 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:45,843 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:45,845 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:45,847 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:45,847 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:45,848 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:45,848 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:45,865 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:45,865 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:45,866 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________________ TestArgGetters.testGetBoolean _________________________ self = def testGetBoolean(self): tests = [ # default testing for None value (None, None, None, None), (None, None, False, False), (None, None, True, True), # some real values (u'0', None, None, False), (u'1', None, None, True), (u'false', None, None, False), (u'true', None, None, True), (u'FALSE', None, None, False), (u'TRUE', None, None, True), (u'no', None, None, False), (u'yes', None, None, True), (u'NO', None, None, False), (u'YES', None, None, True), ] for arg, name, default, expected in tests: > assert wikiutil.get_bool(self.request, arg, name, default) == expected MoinMoin/_tests/test_wikiutil.py:545: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None default = None def get_bool(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return a boolean from a unicode string. Valid input is 'true'/'false', 'yes'/'no' and '1'/'0' or None for the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default value if arg is None @rtype: boolean or None @returns: the boolean value of the string according to above rules (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1465: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:47,666 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,667 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,667 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,668 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,668 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,679 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,679 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,680 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:47,696 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:47,697 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,698 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,698 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,699 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,700 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,710 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,711 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,711 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:47,723 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,724 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,724 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,725 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,726 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,736 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,736 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,737 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:47,749 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:47,750 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,751 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,751 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,752 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,752 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,763 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,763 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,764 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestArgGetters.testGetBooleanRaising _____________________ self = def testGetBooleanRaising(self): # wrong default type > py.test.raises(AssertionError, wikiutil.get_bool, self.request, None, None, 42) MoinMoin/_tests/test_wikiutil.py:549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None, default = 42 def get_bool(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return a boolean from a unicode string. Valid input is 'true'/'false', 'yes'/'no' and '1'/'0' or None for the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default value if arg is None @rtype: boolean or None @returns: the boolean value of the string according to above rules (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1465: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:47,789 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,789 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,790 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,790 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,791 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,801 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,802 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,803 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:47,820 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:47,822 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,822 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,823 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,823 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,824 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,834 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,835 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,836 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________________ TestArgGetters.testGetInt ___________________________ self = def testGetInt(self): tests = [ # default testing for None value (None, None, None, None), (None, None, -23, -23), (None, None, 42, 42), # some real values (u'0', None, None, 0), (u'42', None, None, 42), (u'-23', None, None, -23), ] for arg, name, default, expected in tests: > assert wikiutil.get_int(self.request, arg, name, default) == expected MoinMoin/_tests/test_wikiutil.py:579: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None default = None def get_int(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return an integer from a unicode string containing the decimal representation of a number. None is a valid input and yields the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default value if arg is None @rtype: int or None @returns: the integer value of the string (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1500: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:47,858 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,859 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,860 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,860 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,861 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,871 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,872 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,872 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:47,884 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:47,885 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,886 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,886 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,887 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,887 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,898 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,898 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,899 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________________ TestArgGetters.testGetIntRaising _______________________ self = def testGetIntRaising(self): # wrong default type > py.test.raises(AssertionError, wikiutil.get_int, self.request, None, None, 42.23) MoinMoin/_tests/test_wikiutil.py:583: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None default = 42.229999999999997 def get_int(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return an integer from a unicode string containing the decimal representation of a number. None is a valid input and yields the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default value if arg is None @rtype: int or None @returns: the integer value of the string (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1500: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:47,923 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,923 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,924 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,924 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,925 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,935 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,936 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,936 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:47,954 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:47,956 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,956 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,957 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,957 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,958 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:47,968 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:47,969 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:47,970 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________________ TestArgGetters.testGetFloat __________________________ self = def testGetFloat(self): tests = [ # default testing for None value (None, None, None, None), (None, None, -23.42, -23.42), (None, None, 42.23, 42.23), # some real values (u'0', None, None, 0), (u'42.23', None, None, 42.23), (u'-23.42', None, None, -23.42), (u'-23.42E3', None, None, -23.42E3), (u'23.42E-3', None, None, 23.42E-3), ] for arg, name, default, expected in tests: > assert wikiutil.get_float(self.request, arg, name, default) == expected MoinMoin/_tests/test_wikiutil.py:615: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None default = None def get_float(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return a float from a unicode string. None is a valid input and yields the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default return value if arg is None @rtype: float or None @returns: the float value of the string (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1531: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:47,993 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:47,993 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:47,994 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:47,994 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:47,995 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,005 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,006 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,007 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,018 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,020 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,020 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,021 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,021 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,022 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,032 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,033 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,034 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________ TestArgGetters.testGetFloatRaising ______________________ self = def testGetFloatRaising(self): # wrong default type > py.test.raises(AssertionError, wikiutil.get_float, self.request, None, None, u'42') MoinMoin/_tests/test_wikiutil.py:619: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None default = u'42' def get_float(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return a float from a unicode string. None is a valid input and yields the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default return value if arg is None @rtype: float or None @returns: the float value of the string (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1531: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,058 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,058 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,059 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,059 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,060 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,070 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,071 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,072 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,089 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,091 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,091 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,092 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,093 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,093 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,104 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,104 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,105 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________________ TestArgGetters.testGetComplex _________________________ self = def testGetComplex(self): tests = [ # default testing for None value (None, None, None, None), (None, None, -23.42, -23.42), (None, None, 42.23, 42.23), # some real values (u'0', None, None, 0), (u'42.23', None, None, 42.23), (u'-23.42', None, None, -23.42), (u'-23.42E3', None, None, -23.42E3), (u'23.42E-3', None, None, 23.42E-3), (u'23.42E-3+3.04j', None, None, 23.42E-3+3.04j), (u'3.04j', None, None, 3.04j), (u'-3.04j', None, None, -3.04j), (u'23.42E-3+3.04i', None, None, 23.42E-3+3.04j), (u'3.04i', None, None, 3.04j), (u'-3.04i', None, None, -3.04j), (u'-3', None, None, -3L), (u'-300000000000000000000', None, None, -300000000000000000000L), ] for arg, name, default, expected in tests: > assert wikiutil.get_complex(self.request, arg, name, default) == expected MoinMoin/_tests/test_wikiutil.py:658: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None default = None def get_complex(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return a complex from a unicode string. None is a valid input and yields the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default return value if arg is None @rtype: complex or None @returns: the complex value of the string (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1562: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,128 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,129 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,129 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,130 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,130 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,141 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,141 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,142 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,154 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,155 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,156 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,156 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,157 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,158 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,168 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,168 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,169 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestArgGetters.testGetComplexRaising _____________________ self = def testGetComplexRaising(self): # wrong default type > py.test.raises(AssertionError, wikiutil.get_complex, self.request, None, None, u'42') MoinMoin/_tests/test_wikiutil.py:662: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , arg = None, name = None default = u'42' def get_complex(request, arg, name=None, default=None): """ For use with values returned from parse_quoted_separated or given as macro parameters, return a complex from a unicode string. None is a valid input and yields the default value. @param request: A request instance @param arg: The argument, may be None or a unicode string @param name: Name of the argument, for error messages @param default: default return value if arg is None @rtype: complex or None @returns: the complex value of the string (or default value) """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1562: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,194 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,194 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,195 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,195 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,196 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,206 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,207 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,207 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,224 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,373 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,374 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,375 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,375 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,376 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,387 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,387 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,388 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________________ TestExtensionInvoking.testInvoke _______________________ self = def testInvoke(self): def _test_invoke_int(i=int): assert i == 1 def _test_invoke_int_fixed(a, b, i=int): assert a == 7 assert b == 8 assert i == 1 or i is None ief = wikiutil.invoke_extension_function > ief(self.request, self._test_invoke_bool, u'False') MoinMoin/_tests/test_wikiutil.py:756: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = function = > args = u'False', fixed_args = [] def invoke_extension_function(request, function, args, fixed_args=[]): """ Parses arguments for an extension call and calls the extension function with the arguments. If the macro function has a default value that is a bool, int, long, float or unicode object, then the given value is converted to the type of that default value before passing it to the macro function. That way, macros need not call the wikiutil.get_* functions for any arguments that have a default. @param request: the request object @param function: the function to invoke @param args: unicode string with arguments (or evaluating to False) @param fixed_args: fixed arguments to pass as the first arguments @returns: the return value from the function called """ from inspect import getargspec, isfunction, isclass, ismethod def _convert_arg(request, value, default, name=None): """ Using the get_* functions, convert argument to the type of the default if that is any of bool, int, long, float or unicode; if the default is the type itself then convert to that type (keeps None) or if the default is a list require one of the list items. In other cases return the value itself. """ # if extending this, extend required_arg as well! if isinstance(default, bool): return get_bool(request, value, name, default) elif isinstance(default, (int, long)): return get_int(request, value, name, default) elif isinstance(default, float): return get_float(request, value, name, default) elif isinstance(default, complex): return get_complex(request, value, name, default) elif isinstance(default, unicode): return get_unicode(request, value, name, default) elif isinstance(default, (tuple, list)): return get_choice(request, value, name, default) elif default is bool: return get_bool(request, value, name) elif default is int or default is long: return get_int(request, value, name) elif default is float: return get_float(request, value, name) elif default is complex: return get_complex(request, value, name) elif isinstance(default, IEFArgument): # defaults handled later if value is None: return None return default.parse_argument(value) elif isinstance(default, required_arg): if isinstance(default.argtype, (tuple, list)): # treat choice specially and return None if no choice # is given in the value return get_choice(request, value, name, list(default.argtype), default_none=True) else: return _convert_arg(request, value, default.argtype, name) return value assert isinstance(fixed_args, (list, tuple)) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1798: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,553 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,554 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,554 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,555 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,555 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,566 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,566 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,567 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,579 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,581 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,581 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,582 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,582 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,583 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,594 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,594 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,595 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,607 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,607 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,608 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,608 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,609 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,619 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,620 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,621 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,640 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,641 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,642 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,642 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,643 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,643 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,654 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,654 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,655 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____________________ TestExtensionInvoking.testConstructors ____________________ self = def testConstructors(self): ief = wikiutil.invoke_extension_function # new style class class TEST1(object): def __init__(self, a=int): self.constructed = True assert a == 7 class TEST2(TEST1): pass > obj = ief(self.request, TEST1, u'a=7') MoinMoin/_tests/test_wikiutil.py:834: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = function = , args = u'a=7' fixed_args = [] def invoke_extension_function(request, function, args, fixed_args=[]): """ Parses arguments for an extension call and calls the extension function with the arguments. If the macro function has a default value that is a bool, int, long, float or unicode object, then the given value is converted to the type of that default value before passing it to the macro function. That way, macros need not call the wikiutil.get_* functions for any arguments that have a default. @param request: the request object @param function: the function to invoke @param args: unicode string with arguments (or evaluating to False) @param fixed_args: fixed arguments to pass as the first arguments @returns: the return value from the function called """ from inspect import getargspec, isfunction, isclass, ismethod def _convert_arg(request, value, default, name=None): """ Using the get_* functions, convert argument to the type of the default if that is any of bool, int, long, float or unicode; if the default is the type itself then convert to that type (keeps None) or if the default is a list require one of the list items. In other cases return the value itself. """ # if extending this, extend required_arg as well! if isinstance(default, bool): return get_bool(request, value, name, default) elif isinstance(default, (int, long)): return get_int(request, value, name, default) elif isinstance(default, float): return get_float(request, value, name, default) elif isinstance(default, complex): return get_complex(request, value, name, default) elif isinstance(default, unicode): return get_unicode(request, value, name, default) elif isinstance(default, (tuple, list)): return get_choice(request, value, name, default) elif default is bool: return get_bool(request, value, name) elif default is int or default is long: return get_int(request, value, name) elif default is float: return get_float(request, value, name) elif default is complex: return get_complex(request, value, name) elif isinstance(default, IEFArgument): # defaults handled later if value is None: return None return default.parse_argument(value) elif isinstance(default, required_arg): if isinstance(default.argtype, (tuple, list)): # treat choice specially and return None if no choice # is given in the value return get_choice(request, value, name, list(default.argtype), default_none=True) else: return _convert_arg(request, value, default.argtype, name) return value assert isinstance(fixed_args, (list, tuple)) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1798: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,680 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,681 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,682 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,682 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,683 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,693 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,694 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,694 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,706 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,708 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,708 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,709 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,709 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,710 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,720 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,721 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,722 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________ TestExtensionInvoking.testFailing _______________________ self = def testFailing(self): ief = wikiutil.invoke_extension_function > py.test.raises(TypeError, ief, self.request, hex, u'15') MoinMoin/_tests/test_wikiutil.py:868: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , function = args = u'15', fixed_args = [] def invoke_extension_function(request, function, args, fixed_args=[]): """ Parses arguments for an extension call and calls the extension function with the arguments. If the macro function has a default value that is a bool, int, long, float or unicode object, then the given value is converted to the type of that default value before passing it to the macro function. That way, macros need not call the wikiutil.get_* functions for any arguments that have a default. @param request: the request object @param function: the function to invoke @param args: unicode string with arguments (or evaluating to False) @param fixed_args: fixed arguments to pass as the first arguments @returns: the return value from the function called """ from inspect import getargspec, isfunction, isclass, ismethod def _convert_arg(request, value, default, name=None): """ Using the get_* functions, convert argument to the type of the default if that is any of bool, int, long, float or unicode; if the default is the type itself then convert to that type (keeps None) or if the default is a list require one of the list items. In other cases return the value itself. """ # if extending this, extend required_arg as well! if isinstance(default, bool): return get_bool(request, value, name, default) elif isinstance(default, (int, long)): return get_int(request, value, name, default) elif isinstance(default, float): return get_float(request, value, name, default) elif isinstance(default, complex): return get_complex(request, value, name, default) elif isinstance(default, unicode): return get_unicode(request, value, name, default) elif isinstance(default, (tuple, list)): return get_choice(request, value, name, default) elif default is bool: return get_bool(request, value, name) elif default is int or default is long: return get_int(request, value, name) elif default is float: return get_float(request, value, name) elif default is complex: return get_complex(request, value, name) elif isinstance(default, IEFArgument): # defaults handled later if value is None: return None return default.parse_argument(value) elif isinstance(default, required_arg): if isinstance(default.argtype, (tuple, list)): # treat choice specially and return None if no choice # is given in the value return get_choice(request, value, name, list(default.argtype), default_none=True) else: return _convert_arg(request, value, default.argtype, name) return value assert isinstance(fixed_args, (list, tuple)) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1798: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,745 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,746 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,746 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,747 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,748 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,758 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,759 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,760 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,777 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,778 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,779 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,779 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,780 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,781 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,791 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,792 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,793 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestExtensionInvoking.testAllDefault _____________________ self = def testAllDefault(self): ief = wikiutil.invoke_extension_function def has_many_defaults(a=1, b=2, c=3, d=4): assert a == 1 assert b == 2 assert c == 3 assert d == 4 return True > assert ief(self.request, has_many_defaults, u'1, 2, 3, 4') MoinMoin/_tests/test_wikiutil.py:882: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = function = , args = u'1, 2, 3, 4' fixed_args = [] def invoke_extension_function(request, function, args, fixed_args=[]): """ Parses arguments for an extension call and calls the extension function with the arguments. If the macro function has a default value that is a bool, int, long, float or unicode object, then the given value is converted to the type of that default value before passing it to the macro function. That way, macros need not call the wikiutil.get_* functions for any arguments that have a default. @param request: the request object @param function: the function to invoke @param args: unicode string with arguments (or evaluating to False) @param fixed_args: fixed arguments to pass as the first arguments @returns: the return value from the function called """ from inspect import getargspec, isfunction, isclass, ismethod def _convert_arg(request, value, default, name=None): """ Using the get_* functions, convert argument to the type of the default if that is any of bool, int, long, float or unicode; if the default is the type itself then convert to that type (keeps None) or if the default is a list require one of the list items. In other cases return the value itself. """ # if extending this, extend required_arg as well! if isinstance(default, bool): return get_bool(request, value, name, default) elif isinstance(default, (int, long)): return get_int(request, value, name, default) elif isinstance(default, float): return get_float(request, value, name, default) elif isinstance(default, complex): return get_complex(request, value, name, default) elif isinstance(default, unicode): return get_unicode(request, value, name, default) elif isinstance(default, (tuple, list)): return get_choice(request, value, name, default) elif default is bool: return get_bool(request, value, name) elif default is int or default is long: return get_int(request, value, name) elif default is float: return get_float(request, value, name) elif default is complex: return get_complex(request, value, name) elif isinstance(default, IEFArgument): # defaults handled later if value is None: return None return default.parse_argument(value) elif isinstance(default, required_arg): if isinstance(default.argtype, (tuple, list)): # treat choice specially and return None if no choice # is given in the value return get_choice(request, value, name, list(default.argtype), default_none=True) else: return _convert_arg(request, value, default.argtype, name) return value assert isinstance(fixed_args, (list, tuple)) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1798: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,816 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,816 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,817 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,818 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,818 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,829 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,829 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,830 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,842 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,843 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,844 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,844 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,845 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,845 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,856 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,856 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,857 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________________ TestExtensionInvoking.testInvokeComplex ____________________ self = def testInvokeComplex(self): ief = wikiutil.invoke_extension_function def has_complex(a=complex, b=complex): assert a == b return True > assert ief(self.request, has_complex, u'3-3i, 3-3j') MoinMoin/_tests/test_wikiutil.py:899: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = function = , args = u'3-3i, 3-3j' fixed_args = [] def invoke_extension_function(request, function, args, fixed_args=[]): """ Parses arguments for an extension call and calls the extension function with the arguments. If the macro function has a default value that is a bool, int, long, float or unicode object, then the given value is converted to the type of that default value before passing it to the macro function. That way, macros need not call the wikiutil.get_* functions for any arguments that have a default. @param request: the request object @param function: the function to invoke @param args: unicode string with arguments (or evaluating to False) @param fixed_args: fixed arguments to pass as the first arguments @returns: the return value from the function called """ from inspect import getargspec, isfunction, isclass, ismethod def _convert_arg(request, value, default, name=None): """ Using the get_* functions, convert argument to the type of the default if that is any of bool, int, long, float or unicode; if the default is the type itself then convert to that type (keeps None) or if the default is a list require one of the list items. In other cases return the value itself. """ # if extending this, extend required_arg as well! if isinstance(default, bool): return get_bool(request, value, name, default) elif isinstance(default, (int, long)): return get_int(request, value, name, default) elif isinstance(default, float): return get_float(request, value, name, default) elif isinstance(default, complex): return get_complex(request, value, name, default) elif isinstance(default, unicode): return get_unicode(request, value, name, default) elif isinstance(default, (tuple, list)): return get_choice(request, value, name, default) elif default is bool: return get_bool(request, value, name) elif default is int or default is long: return get_int(request, value, name) elif default is float: return get_float(request, value, name) elif default is complex: return get_complex(request, value, name) elif isinstance(default, IEFArgument): # defaults handled later if value is None: return None return default.parse_argument(value) elif isinstance(default, required_arg): if isinstance(default.argtype, (tuple, list)): # treat choice specially and return None if no choice # is given in the value return get_choice(request, value, name, list(default.argtype), default_none=True) else: return _convert_arg(request, value, default.argtype, name) return value assert isinstance(fixed_args, (list, tuple)) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/wikiutil.py:1798: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:48,881 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,882 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,882 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,883 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,883 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,894 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,895 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,896 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:48,913 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:48,915 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:48,915 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:48,916 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:48,916 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:48,917 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:48,927 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:48,928 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:48,929 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestMoinLDAPLogin.testMoinLDAPLogin ______________________ self = def testMoinLDAPLogin(self): """ Just try accessing the LDAP server and see if usera and userb are in LDAP. """ # tests that must not authenticate: u = handle_login(self.request, None, username='', password='') assert u is None > u = handle_login(self.request, None, username='usera', password='') MoinMoin/auth/_tests/test_ldap_login.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , userobj = None, username = 'usera' password = '', attended = True, openid_identifier = None, stage = None def handle_login(request, userobj=None, username=None, password=None, attended=True, openid_identifier=None, stage=None): """ Process a 'login' request by going through the configured authentication methods in turn. The passable keyword arguments are explained in more detail at the top of this file. """ params = { 'username': username, 'password': password, 'attended': attended, 'openid_identifier': openid_identifier, 'multistage': (stage and True) or None } for authmethod in request.cfg.auth: if stage and authmethod.name != stage: continue > ret = authmethod.login(request, userobj, **params) MoinMoin/auth/__init__.py:397: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , user_obj = None def login(self, request, user_obj, **kw): username = kw.get('username') password = kw.get('password') # simply continue if something else already logged in successfully if user_obj and user_obj.valid: return ContinueLogin(user_obj) if not username and not password: return ContinueLogin(user_obj) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/auth/__init__.py:239: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:50,638 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:50,638 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:50,639 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:50,640 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:50,640 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:50,651 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:50,652 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:50,653 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:50,670 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:50,672 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:50,672 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:50,673 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:50,673 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:50,674 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:50,685 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:50,686 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:50,686 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:50,843 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:50,844 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:50,844 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:50,845 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:50,846 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:50,858 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:50,859 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:50,859 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:50,871 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:50,872 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:50,873 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:50,873 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:50,874 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:50,875 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:50,885 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:50,887 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:50,888 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________ TestBugDefaultPasswd.testBugDefaultPasswd ___________________ self = def testBugDefaultPasswd(self): """ Login via LDAP (this creates user profile and up to 1.7.0rc1 it put a default password there), then try logging in via moin login using that default password or an empty password. """ # do a LDAPAuth login (as a side effect, this autocreates the user profile): > u1 = handle_login(self.request, None, username='usera', password='usera') MoinMoin/auth/_tests/test_ldap_login.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , userobj = None, username = 'usera' password = 'usera', attended = True, openid_identifier = None, stage = None def handle_login(request, userobj=None, username=None, password=None, attended=True, openid_identifier=None, stage=None): """ Process a 'login' request by going through the configured authentication methods in turn. The passable keyword arguments are explained in more detail at the top of this file. """ params = { 'username': username, 'password': password, 'attended': attended, 'openid_identifier': openid_identifier, 'multistage': (stage and True) or None } for authmethod in request.cfg.auth: if stage and authmethod.name != stage: continue > ret = authmethod.login(request, userobj, **params) MoinMoin/auth/__init__.py:397: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , user_obj = None def login(self, request, user_obj, **kw): username = kw.get('username') password = kw.get('password') # simply continue if something else already logged in successfully if user_obj and user_obj.valid: return ContinueLogin(user_obj) if not username and not password: return ContinueLogin(user_obj) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/auth/__init__.py:239: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:50,930 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:50,930 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:50,931 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:50,931 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:50,932 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:50,943 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:50,944 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:50,944 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:50,962 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:50,964 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:50,964 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:50,965 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:50,965 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:50,966 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:50,976 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:50,977 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:50,978 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:51,137 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:51,138 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:51,138 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:51,139 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:51,139 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:51,151 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:51,152 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:51,152 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:51,164 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:51,166 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:51,166 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:51,167 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:51,167 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:51,168 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:51,178 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:51,179 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:51,180 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____________________ TestLdapFailover.testMoinLDAPFailOver _____________________ self = def testMoinLDAPFailOver(self): """ Try if it does a failover to a secondary LDAP, if the primary fails. """ # authenticate user (with primary slapd): > u1 = handle_login(self.request, None, username='usera', password='usera') MoinMoin/auth/_tests/test_ldap_login.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , userobj = None, username = 'usera' password = 'usera', attended = True, openid_identifier = None, stage = None def handle_login(request, userobj=None, username=None, password=None, attended=True, openid_identifier=None, stage=None): """ Process a 'login' request by going through the configured authentication methods in turn. The passable keyword arguments are explained in more detail at the top of this file. """ params = { 'username': username, 'password': password, 'attended': attended, 'openid_identifier': openid_identifier, 'multistage': (stage and True) or None } for authmethod in request.cfg.auth: if stage and authmethod.name != stage: continue > ret = authmethod.login(request, userobj, **params) MoinMoin/auth/__init__.py:397: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , user_obj = None def login(self, request, user_obj, **kw): username = kw.get('username') password = kw.get('password') # simply continue if something else already logged in successfully if user_obj and user_obj.valid: return ContinueLogin(user_obj) if not username and not password: return ContinueLogin(user_obj) > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/auth/__init__.py:239: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:51,692 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:51,693 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:51,694 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:51,694 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:51,695 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:51,706 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:51,707 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:51,708 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:51,728 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:51,730 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:51,730 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:51,731 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:51,732 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:51,732 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:51,743 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:51,744 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:51,745 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:52,065 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:52,066 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:52,066 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:52,067 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:52,068 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:52,080 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:52,081 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:52,082 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:52,093 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:52,095 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:52,095 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:52,096 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:52,096 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:52,097 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:52,108 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:52,109 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:52,109 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________ TestPasswordChecker.testBuiltinPasswordChecker ________________ self = def testBuiltinPasswordChecker(self): pw_checker = self.request.cfg.password_checker if not pw_checker: py.test.skip("password_checker is disabled in the configuration, not testing it") else: for pw, result in self.tests_builtin: > pw_error = pw_checker(self.request, self.username, pw) MoinMoin/config/_tests/test_multiconfig.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cfg = request = , username = u'SomeUser', password = u'' def _default_password_checker(cfg, request, username, password): """ Check if a password is secure enough. We use a built-in check to get rid of the worst passwords. We do NOT use cracklib / python-crack here any more because it is not thread-safe (we experienced segmentation faults when using it). If you don't want to check passwords, use password_checker = None. @return: None if there is no problem with the password, some unicode object with an error msg, if the password is problematic. """ > _ = request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/config/multiconfig.py:581: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:47:52,415 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:52,415 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:52,416 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:52,416 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:52,417 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:52,430 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:52,431 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:52,432 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:52,449 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:52,450 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:52,451 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:52,451 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:52,452 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:52,452 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:52,463 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:52,464 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:52,465 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:52,477 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:52,477 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:52,478 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:52,479 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:52,479 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:52,490 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:52,490 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:52,491 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:47:52,502 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:47:52,504 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:47:52,505 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:47:52,505 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:47:52,506 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:47:52,506 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:47:52,517 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:47:52,518 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:47:52,518 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________________ TestConverter.test_base[9] __________________________ self = input = u'{{http://moinmo.in/}}' output = '

' args = {} def do(self, input, output, args={}): out = self.conv(input.split(u'\n'), **args) > assert self.serialize(out) == output E assert u'

http://moinmo.in/

' == '

' E + where u'

http://moinmo.in/

' = .serialize() MoinMoin/converter2/_tests/test_creole_in.py:260: AssertionError _________________________ TestConverter.test_base[10] __________________________ self = input = u'{{http://moinmo.in/|MoinMoin}}' output = '

' args = {} def do(self, input, output, args={}): out = self.conv(input.split(u'\n'), **args) > assert self.serialize(out) == output E assert u'

MoinMoin

' == '

' E + where u'

MoinMoin

' = .serialize() MoinMoin/converter2/_tests/test_creole_in.py:260: AssertionError ________________________ TestConverterPage.test_note[0] ________________________ self = input = '

TextNote

' xpath = '/div[p[text()="Text"]/sup[@id="note-1-ref"]/a[@href="#note-1"][text()="1"]][p[@id="note-1"][text()="Note"]/sup/a[@href="#note-1-ref"][text()="1"]]' args = {} def do(self, input, xpath, args={}): > out = self.conv(self.handle_input(input), **args) MoinMoin/converter2/_tests/test_html_out.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = element = def __call__(self, element): > _ = self.request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/converter2/html_out.py:506: AttributeError ________________________ TestConverterPage.test_unknown ________________________ self = def test_unknown(self): page = ET.XML("" % self.input_namespaces) > py.test.raises(ElementException, self.conv.__call__, page) MoinMoin/converter2/_tests/test_html_out.py:251: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = element = def __call__(self, element): > _ = self.request.getText E AttributeError: 'TestRequest' object has no attribute 'getText' MoinMoin/converter2/html_out.py:506: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:01,446 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:01,446 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:01,447 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:01,447 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:01,448 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:01,459 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:01,459 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:01,460 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:01,471 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:01,473 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:01,474 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:01,474 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:01,474 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:01,475 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:01,485 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:01,486 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:01,487 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________ TestConverterExternOutput.test_wikilocal[1] __________________ self = input = 'wiki.local:Test', page = 'wiki:///Root', output = './Test', skip = None def _do_wikilocal(self, input, page, output, skip=None): if skip: py.test.skip(skip) elem = ET.Element(None) > self.conv.handle_wikilocal(elem, Iri(input), Iri(page)) MoinMoin/converter2/_tests/test_link.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = elem = input = Iri(scheme=u'wiki.local', authority=None, path=, query=None, fragment=None) page = Iri(scheme=u'wiki', authority=IriAuthority(userinfo=None, host=None, port=None...ath=, query=None, fragment=None) def handle_wikilocal(self, elem, input, page): do, query = self._get_do(input.query) link = Iri(query=query, fragment=input.fragment) if input.path: path = input.path if path[0] == '': # /subitem tmp = page.path[1:] tmp.extend(path[1:]) path = tmp elif path[0] == '..': # ../sisteritem path = page.path[1:] + path[1:] > if not self.request.storage.has_item(unicode(path)): E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/converter2/link.py:135: AttributeError _________________ TestConverterExternOutput.test_wikilocal[2] __________________ self = input = 'wiki.local:Test', page = 'wiki:///Root/Sub', output = './Test' skip = None def _do_wikilocal(self, input, page, output, skip=None): if skip: py.test.skip(skip) elem = ET.Element(None) > self.conv.handle_wikilocal(elem, Iri(input), Iri(page)) MoinMoin/converter2/_tests/test_link.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = elem = input = Iri(scheme=u'wiki.local', authority=None, path=, query=None, fragment=None) page = Iri(scheme=u'wiki', authority=IriAuthority(userinfo=None, host=None, port=None...ath=, query=None, fragment=None) def handle_wikilocal(self, elem, input, page): do, query = self._get_do(input.query) link = Iri(query=query, fragment=input.fragment) if input.path: path = input.path if path[0] == '': # /subitem tmp = page.path[1:] tmp.extend(path[1:]) path = tmp elif path[0] == '..': # ../sisteritem path = page.path[1:] + path[1:] > if not self.request.storage.has_item(unicode(path)): E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/converter2/link.py:135: AttributeError _________________ TestConverterExternOutput.test_wikilocal[3] __________________ self = input = 'wiki.local:/Test', page = 'wiki:///Root', output = './Root/Test' skip = None def _do_wikilocal(self, input, page, output, skip=None): if skip: py.test.skip(skip) elem = ET.Element(None) > self.conv.handle_wikilocal(elem, Iri(input), Iri(page)) MoinMoin/converter2/_tests/test_link.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = elem = input = Iri(scheme=u'wiki.local', authority=None, path=, query=None, fragment=None) page = Iri(scheme=u'wiki', authority=IriAuthority(userinfo=None, host=None, port=None...ath=, query=None, fragment=None) def handle_wikilocal(self, elem, input, page): do, query = self._get_do(input.query) link = Iri(query=query, fragment=input.fragment) if input.path: path = input.path if path[0] == '': # /subitem tmp = page.path[1:] tmp.extend(path[1:]) path = tmp elif path[0] == '..': # ../sisteritem path = page.path[1:] + path[1:] > if not self.request.storage.has_item(unicode(path)): E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/converter2/link.py:135: AttributeError _________________ TestConverterExternOutput.test_wikilocal[4] __________________ self = input = 'wiki.local:/Test', page = 'wiki:///Root/Sub' output = './Root/Sub/Test', skip = None def _do_wikilocal(self, input, page, output, skip=None): if skip: py.test.skip(skip) elem = ET.Element(None) > self.conv.handle_wikilocal(elem, Iri(input), Iri(page)) MoinMoin/converter2/_tests/test_link.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = elem = input = Iri(scheme=u'wiki.local', authority=None, path=, query=None, fragment=None) page = Iri(scheme=u'wiki', authority=IriAuthority(userinfo=None, host=None, port=None...ath=, query=None, fragment=None) def handle_wikilocal(self, elem, input, page): do, query = self._get_do(input.query) link = Iri(query=query, fragment=input.fragment) if input.path: path = input.path if path[0] == '': # /subitem tmp = page.path[1:] tmp.extend(path[1:]) path = tmp elif path[0] == '..': # ../sisteritem path = page.path[1:] + path[1:] > if not self.request.storage.has_item(unicode(path)): E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/converter2/link.py:135: AttributeError _________________ TestConverterExternOutput.test_wikilocal[5] __________________ self = input = 'wiki.local:../Test', page = 'wiki:///Root', output = './Test' skip = None def _do_wikilocal(self, input, page, output, skip=None): if skip: py.test.skip(skip) elem = ET.Element(None) > self.conv.handle_wikilocal(elem, Iri(input), Iri(page)) MoinMoin/converter2/_tests/test_link.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = elem = input = Iri(scheme=u'wiki.local', authority=None, path=, query=None, fragment=None) page = Iri(scheme=u'wiki', authority=IriAuthority(userinfo=None, host=None, port=None...ath=, query=None, fragment=None) def handle_wikilocal(self, elem, input, page): do, query = self._get_do(input.query) link = Iri(query=query, fragment=input.fragment) if input.path: path = input.path if path[0] == '': # /subitem tmp = page.path[1:] tmp.extend(path[1:]) path = tmp elif path[0] == '..': # ../sisteritem path = page.path[1:] + path[1:] > if not self.request.storage.has_item(unicode(path)): E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/converter2/link.py:135: AttributeError _________________ TestConverterExternOutput.test_wikilocal[6] __________________ self = input = 'wiki.local:../Test', page = 'wiki:///Root/Sub', output = './Root/Test' skip = None def _do_wikilocal(self, input, page, output, skip=None): if skip: py.test.skip(skip) elem = ET.Element(None) > self.conv.handle_wikilocal(elem, Iri(input), Iri(page)) MoinMoin/converter2/_tests/test_link.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = elem = input = Iri(scheme=u'wiki.local', authority=None, path=, query=None, fragment=None) page = Iri(scheme=u'wiki', authority=IriAuthority(userinfo=None, host=None, port=None...ath=, query=None, fragment=None) def handle_wikilocal(self, elem, input, page): do, query = self._get_do(input.query) link = Iri(query=query, fragment=input.fragment) if input.path: path = input.path if path[0] == '': # /subitem tmp = page.path[1:] tmp.extend(path[1:]) path = tmp elif path[0] == '..': # ../sisteritem path = page.path[1:] + path[1:] > if not self.request.storage.has_item(unicode(path)): E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/converter2/link.py:135: AttributeError _________________________ TestConverter.test_base[10] __________________________ self = input = u'text
quote quote quote quote quote quote
text' output = u'', args = {}, skip = None def do(self, input, output, args={}, skip=None): out = self.conv(input.split(u'\n'), **args) print self.serialize(out) > assert self.serialize(out) == output E assert u'

text <blockquote> quote quote quote quote quote quote </blockquote> text

' == u'' E + where u'

text <blockquote> quote quote quote quote quote quote </blockquote> text

' = .serialize() MoinMoin/converter2/_tests/test_mediawiki_in.py:141: AssertionError ------------------------------- Captured stdout --------------------------------

text <blockquote> quote quote quote quote quote quote </blockquote> text

__________________________ TestConverter.test_list[2] __________________________ self = input = ';item 1\n: definition 1\n;item 2\n: definition 2-1\n: definition 2-2\n' output = '', args = {}, skip = None def do(self, input, output, args={}, skip=None): out = self.conv(input.split(u'\n'), **args) print self.serialize(out) > assert self.serialize(out) == output E assert u'item 1

definition 2-2

' == '' E + where u'item 1

definition 2-2

' = .serialize() MoinMoin/converter2/_tests/test_mediawiki_in.py:141: AssertionError ------------------------------- Captured stdout -------------------------------- item 1

definition 1

item 2

definition 2-1

definition 2-2

__________________________ TestConverter.test_list[5] __________________________ self = input = '# one\n# two\n#* two point one\n#* two point two\n# three\n#; three item one\n#: three def one\n' output = '', args = {}, skip = None def do(self, input, output, args={}, skip=None): out = self.conv(input.split(u'\n'), **args) print self.serialize(out) > assert self.serialize(out) == output E assert u'<...tem-body>' == '' E + where u'<...tem-body>' = .serialize() MoinMoin/converter2/_tests/test_mediawiki_in.py:141: AssertionError ------------------------------- Captured stdout --------------------------------

one

two

two point one

two point two

three

three item one

three def one

____________________ TestConverterFormat19.test_freelink[2] ____________________ self = input = u'Self:FrontPage' output = '

FrontPage

' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) > out = self.conv(input.split(u'\n'), **args) MoinMoin/converter2/_tests/test_moinwiki_in.py:262: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = content = [u'Self:FrontPage'], arguments = None def __call__(self, content, arguments=None): iter_content = _Iter(content) > body = self.parse_block(iter_content, arguments) MoinMoin/converter2/moinwiki_in.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = iter_content = arguments = None def parse_block(self, iter_content, arguments): attrib = {} if arguments: for key, value in arguments.keyword.iteritems(): if key in ('style', ): attrib[moin_page(key)] = value elif key == '_old': attrib[moin_page.class_] = value.replace('/', ' ') body = moin_page.body(attrib=attrib) stack = _Stack(body) for line in iter_content: data = dict(((str(k), v) for k, v in self.indent_re.match(line).groupdict().iteritems() if v is not None)) > self.indent_repl(iter_content, stack, line, **data) MoinMoin/converter2/moinwiki_in.py:982: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = iter_content = stack = line = u'Self:FrontPage', indent = u'', text = u'Self:FrontPage' list_begin = None, list_definition = None, list_definition_text = None list_numbers = None, list_alpha = None, list_roman = None, list_bullet = None list_none = None def indent_repl(self, iter_content, stack, line, indent, text, list_begin=None, list_definition=None, list_definition_text=None, list_numbers=None, list_alpha=None, list_roman=None, list_bullet=None, list_none=None): level = len(indent) list_type = 'unordered', 'none' if list_begin: if list_definition: list_type = 'definition', None elif list_numbers: list_type = 'ordered', None elif list_alpha: list_type = 'ordered', 'upper-alpha' elif list_roman: list_type = 'ordered', 'upper-roman' elif list_bullet: list_type = 'unordered', None element_use = None while len(stack) > 1: cur = stack.top() if cur.tag.name == 'list-item-body': if level > cur.level: element_use = cur break if cur.tag.name == 'list': if level >= cur.level and list_type == cur.list_type: element_use = cur break stack.pop() if not element_use: element_use = stack.top() if indent: if element_use.tag.name != 'list': attrib = {} if not list_definition: attrib[moin_page.item_label_generate] = list_type[0] if list_type[1]: attrib[moin_page.list_style_type] = list_type[1] element = moin_page.list(attrib=attrib) element.level, element.list_type = level, list_type stack.push(element) stack.push(moin_page.list_item()) if list_definition_text: element_label = moin_page.list_item_label() stack.top_append(element_label) new_stack = _Stack(element_label) self.parse_inline(list_definition_text, new_stack, self.inline_re) element_body = moin_page.list_item_body() element_body.level, element_body.type = level, type stack.push(element_body) new_stack = _Stack(element_body) else: new_stack = stack iter = _Iter(self.indent_iter(iter_content, text, level)) for line in iter: match = self.block_re.match(line) it = iter # XXX: Hack to allow nowiki to ignore the list identation if match.lastgroup == 'nowiki': it = iter_content > self._apply(match, 'block', it, new_stack) MoinMoin/converter2/moinwiki_in.py:515: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = match = <_sre.SRE_Match object at 0x351e510>, prefix = 'block' def _apply(self, match, prefix, *args): """ Call the _repl method for the last matched group with the given prefix. """ data = dict(((str(k), v) for k, v in match.groupdict().iteritems() if v is not None)) func = '%s_%s_repl' % (prefix, match.lastgroup) #logging.debug("calling %s(%r, %r)" % (func, args, data)) > getattr(self, func)(*args, **data) MoinMoin/converter2/moinwiki_in.py:965: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = _iter_content = stack = text = u'Self:FrontPage' def block_text_repl(self, _iter_content, stack, text): if stack.top_check('table', 'table-body', 'list'): stack.clear() if stack.top_check('body', 'list-item-body'): element = moin_page.p() stack.push(element) # If we are in a paragraph already, don't loose the whitespace else: stack.top_append('\n') > self.parse_inline(text, stack, self.inline_re) MoinMoin/converter2/moinwiki_in.py:393: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = text = u'Self:FrontPage' stack = inline_re = <_sre.SRE_Pattern object at 0x528b2b0> def parse_inline(self, text, stack, inline_re): """Recognize inline elements within the given text""" pos = 0 for match in inline_re.finditer(text): # Handle leading text stack.top_append_ifnotempty(text[pos:match.start()]) pos = match.end() > self._apply(match, 'inline', stack) MoinMoin/converter2/moinwiki_in.py:995: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = match = <_sre.SRE_Match object at 0x2ecb760>, prefix = 'inline' def _apply(self, match, prefix, *args): """ Call the _repl method for the last matched group with the given prefix. """ data = dict(((str(k), v) for k, v in match.groupdict().iteritems() if v is not None)) func = '%s_%s_repl' % (prefix, match.lastgroup) #logging.debug("calling %s(%r, %r)" % (func, args, data)) > getattr(self, func)(*args, **data) MoinMoin/converter2/moinwiki_in.py:965: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = stack = freelink = u'Self:FrontPage', freelink_bang = None freelink_interwiki_page = u'FrontPage', freelink_interwiki_ref = u'Self' freelink_page = None, freelink_email = None def inline_freelink_repl(self, stack, freelink, freelink_bang=None, freelink_interwiki_page=None, freelink_interwiki_ref=None, freelink_page=None, freelink_email=None): if freelink_bang: stack.top_append(freelink) return attrib = {} if freelink_page: page = freelink_page.encode('utf-8') if '#' in page: path, fragment = page.rsplit('#', 1) else: path, fragment = page, None link = Iri(scheme='wiki.local', path=path, fragment=fragment) text = freelink_page elif freelink_email: link = 'mailto:' + freelink_email text = freelink_email else: wikitag_bad = wikiutil.resolve_interwiki(self.request, > freelink_interwiki_ref, freelink_interwiki_page)[3] MoinMoin/converter2/moinwiki19_in.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , wikiname = u'Self' pagename = u'FrontPage' def resolve_interwiki(request, wikiname, pagename): """ Resolve an interwiki reference (wikiname:pagename). @param request: the request object @param wikiname: interwiki wiki name @param pagename: interwiki page name @rtype: tuple @return: (wikitag, wikiurl, wikitail, err) """ > _interwiki_list = load_wikimap(request) MoinMoin/wikiutil.py:550: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = def load_wikimap(request): """ load interwiki map (once, and only on demand) """ from MoinMoin.Page import Page now = int(time.time()) if getattr(request.cfg, "shared_intermap_files", None) is None: generate_file_list(request) try: _interwiki_list = request.cfg.cache.interwiki_list old_mtime = request.cfg.cache.interwiki_mtime if request.cfg.cache.interwiki_ts + (1*60) < now: # 1 minutes caching time max_mtime = get_max_mtime(request.cfg.shared_intermap_files, Page(request, INTERWIKI_PAGE)) if max_mtime > old_mtime: raise AttributeError # refresh cache else: request.cfg.cache.interwiki_ts = now except AttributeError: _interwiki_list = {} lines = [] for filename in request.cfg.shared_intermap_files: f = codecs.open(filename, "r", config.charset) lines.extend(f.readlines()) f.close() # add the contents of the InterWikiMap page > lines += Page(request, INTERWIKI_PAGE).get_raw_body().splitlines() MoinMoin/wikiutil.py:496: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , page_name = 'InterWikiMap' formatter = None def __init__(self, request, page_name, formatter=None, **kw): """ Create page object. Note that this is a 'lean' operation, since the text for the page is loaded on demand. Thus, things like `Page(name).link_to()` are efficient. @param page_name: WikiName of the page @keyword rev: number of older revision @keyword formatter: mimetype str, None or no kw arg will use default mimetype @keyword include_self: if 1, include current user (default: 0) """ self.request = request self.cfg = request.cfg self.page_name = page_name self.rev = kw.get('rev', -1) # revision of this page self.include_self = kw.get('include_self', 0) if isinstance(formatter, basestring): # mimetype given mimetype = str(formatter) else: mimetype = 'text/html' self.output_mimetype = mimetype self.default_formatter = mimetype == "text/html" self.output_charset = config.charset # correct for wiki pages self._page_name_force = None self.hilite_re = None > self._backend = request.storage E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/Page.py:69: AttributeError __________________________ TestConverter.test_base[2] __________________________ self = input = u'----\n-----\n------\n', output = '----\n-----\n------\n', args = {} skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'----\n----\n----\n' == '----\n-----\n------\n' E + where u'----\n----\n----\n' = .handle_output(u'----\n----\n----\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _________________________ TestConverter.test_base[13] __________________________ self = input = u'## comment\n', output = '## comment\n', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'' == '## comment\n' E + where u'' = .handle_output(u'') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _________________________ TestConverter.test_macros[1] _________________________ self = input = u'<>', output = '<>\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'<>\n' == '<>\n' E + where u'<>\n' = .handle_output(u'<>\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError ________________________ TestConverter.test_parsers[3] _________________________ self = input = u'#format creole\n... **bold** ...\n' output = '#format creole\n... **bold** ...\n', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'#format creole\n\n.. **bold** ...\n' == '#format creole\n... **bold** ...\n' E + where u'#format creole\n\n.. **bold** ...\n' = .handle_output(u'#format creole\n\n.. **bold** ...\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _______________________ TestConverter.test_variables[0] ________________________ self = input = u'VAR:: text', output = u'VAR:: text', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'text\n' == u'VAR:: text' E + where u'text\n' = .handle_output(u'text\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _______________________ TestConverter.test_variables[1] ________________________ self = input = u'@TIME@', output = u'', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'@TIME@\n' == u'' E + where u'@TIME@\n' = .handle_output(u'@TIME@\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _______________________ TestConverter.test_variables[2] ________________________ self = input = u'@DATE@', output = u'', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'@DATE@\n' == u'' E + where u'@DATE@\n' = .handle_output(u'@DATE@\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _______________________ TestConverter.test_variables[3] ________________________ self = input = u'@PAGE@', output = u'', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'@PAGE@\n' == u'' E + where u'@PAGE@\n' = .handle_output(u'@PAGE@\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_link[1] __________________________ self = input = u'[[SomePage|{{attachment:samplegraphic.png}}|target=_blank]]' output = '[[SomePage|{{attachment:samplegraphic.png}}|target=_blank]]\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'[[SomePage|{{attachment:samplegraphic.png}}|&target=_blank]]\n' == '[[SomePage|{{attachment:samplegraphic.png}}|target=_blank]]\n' E + where u'[[SomePage|{{attachment:samplegraphic.png}}|&target=_blank]]\n' = .handle_output(u'[[SomePage|{{attachment:samplegraphic.png}}|&target=_blank]]\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_link[4] __________________________ self = input = u'[[http://static.moinmo.in/logos/moinmoin.png|{{attachment:samplegraphic.png}}|target=_blank]]' output = '[[http://static.moinmo.in/logos/moinmoin.png|{{attachment:samplegraphic.png}}|target=_blank]]\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'[[http://static.moinmo.in/logos/moinmoin.png|{{attachment:samplegraphic.png}}]]\n' == '[[http://static.moinmo.in/logos/moinmoin.png|{{attachment:samplegraphic.png}}|target=_blank]]\n' E + where u'[[http://static.moinmo.in/logos/moinmoin.png|{{attachment:samplegraphic.png}}]]\n' = .handle_output(u'[[http://static.moinmo.in/logos/moinmoin.png|{{attachment:samplegraphic.png}}]]\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_link[5] __________________________ self = input = u'[[http://moinmo.in/|MoinMoin Wiki|class=green dotted, accesskey=1]]' output = '[[http://moinmo.in/|MoinMoin Wiki|class=green dotted,accesskey=1]]\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'[[http://moinmo.in/|MoinMoin Wiki]]\n' == '[[http://moinmo.in/|MoinMoin Wiki|class=green dotted,accesskey=1]]\n' E + where u'[[http://moinmo.in/|MoinMoin Wiki]]\n' = .handle_output(u'[[http://moinmo.in/|MoinMoin Wiki]]\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_link[7] __________________________ self = input = u'[[attachment:HelpOnImages/pineapple.jpg|a pineapple|&do=get]]' output = '[[attachment:HelpOnImages/pineapple.jpg|a pineapple|&do=get]]\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'[[/HelpOnImages/pineapple.jpg|a pineapple|&do=get]]\n' == '[[attachment:HelpOnImages/pineapple.jpg|a pineapple|&do=get]]\n' E + where u'[[/HelpOnImages/pineapple.jpg|a pineapple|&do=get]]\n' = .handle_output(u'[[/HelpOnImages/pineapple.jpg|a pineapple|&do=get]]\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_link[8] __________________________ self = input = u'[[attachment:filename.txt]]', output = '[[attachment:filename.txt]]\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'[[/filename.txt]]\n' == '[[attachment:filename.txt]]\n' E + where u'[[/filename.txt]]\n' = .handle_output(u'[[/filename.txt]]\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_list[0] __________________________ self = input = u' * A\n * B\n 1. C\n 1. D\n I. E\n I. F\n' output = ' * A\n * B\n 1. C\n 1. D\n I. E\n I. F\n', args = {} skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u' * A\n * B\n 1. C\n 1. D\n I. E\n I. F\n' == ' * A\n * B\n 1. C\n 1. D\n I. E\n I. F\n' E + where u' * A\n * B\n 1. C\n 1. D\n I. E\n I. F\n' = .handle_output(u' * A\n * B\n 1. C\n 1. D\n I. E\n I. F\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_list[1] __________________________ self = input = u' i. E\n i. F\n', output = ' i. E\n i. F\n', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u' I. E\n I. F\n' == ' i. E\n i. F\n' E + where u' I. E\n I. F\n' = .handle_output(u' I. E\n I. F\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError __________________________ TestConverter.test_list[3] __________________________ self = input = u' A::\n :: B\n :: C\n :: D\n', output = ' A::\n :: B\n :: C\n :: D\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u' A::\n\n :: B\n :: C\n :: D\n' == ' A::\n :: B\n :: C\n :: D\n' E + where u' A::\n\n :: B\n :: C\n :: D\n' = .handle_output(u' A::\n\n :: B\n :: C\n :: D\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _________________________ TestConverter.test_object[0] _________________________ self = input = u'{{drawing:anywikitest.adraw}}' output = '{{drawing:anywikitest.adraw}}\n', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) > out = self.conv_out(self.handle_input(self.serialize(out)), **args) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = input = u'' def handle_input(self, input): i = self.input_re.sub(r'\1 ' + self.input_namespaces, input) > return ET.XML(i) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ text = u'' parser = def XML(text, parser=None): if not parser: parser = XMLParser(target=TreeBuilder()) > parser.feed(text) MoinMoin/support/emeraldtree/tree.py:831: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = u'' def feed(self, data): try: self._parser.Parse(data, 0) except self._error, v: > self._raiseerror(v) MoinMoin/support/emeraldtree/tree.py:1112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = value = ExpatError('unbound prefix: line 1, column 160',) def _raiseerror(self, value): err = ParseError(value) err.code = value.code err.position = value.lineno, value.offset > raise err E ParseError: unbound prefix: line 1, column 160 MoinMoin/support/emeraldtree/tree.py:1022: ParseError _________________________ TestConverter.test_object[3] _________________________ self = input = u'{{http://static.moinmo.in/logos/moinmoin.png|alt text|width=100 height=150 align=right}}' output = '{{http://static.moinmo.in/logos/moinmoin.png|alt text|width=100 height=150 align=right}}\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) out = self.conv_out(self.handle_input(self.serialize(out)), **args) > assert self.handle_output(out) == output E assert u'{{http://static.moinmo.in/logos/moinmoin.png|alt text}}\n' == '{{http://static.moinmo.in/logos/moinmoin.png|alt text|width=100 height=150 align=right}}\n' E + where u'{{http://static.moinmo.in/logos/moinmoin.png|alt text}}\n' = .handle_output(u'{{http://static.moinmo.in/logos/moinmoin.png|alt text}}\n') MoinMoin/converter2/_tests/test_moinwiki_in_out.py:524: AssertionError _________________________ TestConverter.test_object[4] _________________________ self = input = u'{{attachment:image.png}}', output = '{{attachment:image.png}}\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) > out = self.conv_out(self.handle_input(self.serialize(out)), **args) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = input = u'' def handle_input(self, input): i = self.input_re.sub(r'\1 ' + self.input_namespaces, input) > return ET.XML(i) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ text = u'' parser = def XML(text, parser=None): if not parser: parser = XMLParser(target=TreeBuilder()) > parser.feed(text) MoinMoin/support/emeraldtree/tree.py:831: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = u'' def feed(self, data): try: self._parser.Parse(data, 0) except self._error, v: > self._raiseerror(v) MoinMoin/support/emeraldtree/tree.py:1112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = value = ExpatError('unbound prefix: line 1, column 160',) def _raiseerror(self, value): err = ParseError(value) err.code = value.code err.position = value.lineno, value.offset > raise err E ParseError: unbound prefix: line 1, column 160 MoinMoin/support/emeraldtree/tree.py:1022: ParseError _________________________ TestConverter.test_object[5] _________________________ self = input = u'{{attachment:image.png|alt text}}' output = '{{attachment:image.png|alt text}}\n', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) > out = self.conv_out(self.handle_input(self.serialize(out)), **args) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = input = u'' def handle_input(self, input): i = self.input_re.sub(r'\1 ' + self.input_namespaces, input) > return ET.XML(i) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ text = u'' parser = def XML(text, parser=None): if not parser: parser = XMLParser(target=TreeBuilder()) > parser.feed(text) MoinMoin/support/emeraldtree/tree.py:831: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = u'' def feed(self, data): try: self._parser.Parse(data, 0) except self._error, v: > self._raiseerror(v) MoinMoin/support/emeraldtree/tree.py:1112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = value = ExpatError('unbound prefix: line 1, column 160',) def _raiseerror(self, value): err = ParseError(value) err.code = value.code err.position = value.lineno, value.offset > raise err E ParseError: unbound prefix: line 1, column 160 MoinMoin/support/emeraldtree/tree.py:1022: ParseError _________________________ TestConverter.test_object[6] _________________________ self = input = u'{{attachment:image.png|alt text|width=100 align=left height=150}}' output = '{{attachment:image.png|alt text|width=100 align=left height=150}}\n' args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) > out = self.conv_out(self.handle_input(self.serialize(out)), **args) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = input = u'' def handle_input(self, input): i = self.input_re.sub(r'\1 ' + self.input_namespaces, input) > return ET.XML(i) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ text = u'' parser = def XML(text, parser=None): if not parser: parser = XMLParser(target=TreeBuilder()) > parser.feed(text) MoinMoin/support/emeraldtree/tree.py:831: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = u'' def feed(self, data): try: self._parser.Parse(data, 0) except self._error, v: > self._raiseerror(v) MoinMoin/support/emeraldtree/tree.py:1112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = value = ExpatError('unbound prefix: line 1, column 160',) def _raiseerror(self, value): err = ParseError(value) err.code = value.code err.position = value.lineno, value.offset > raise err E ParseError: unbound prefix: line 1, column 160 MoinMoin/support/emeraldtree/tree.py:1022: ParseError __________________________ TestConverter.test_page[0] __________________________ self = input = u'\nThis page aims to introduce the most important elements of MoinMoin``\'s s...dotted" (see HelpOnParsers).\n\nIts visibility gets toggled the same way.\n}}}' output = ' ', args = {}, skip = None def do(self, input, output, args={}, skip=None): if skip: py.test.skip(skip) out = self.conv_in(input.split(u'\n'), **args) > out = self.conv_out(self.handle_input(self.serialize(out)), **args) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = input = u'This page aims to introduce the most important...toggled the same way.' def handle_input(self, input): i = self.input_re.sub(r'\1 ' + self.input_namespaces, input) > return ET.XML(i) MoinMoin/converter2/_tests/test_moinwiki_in_out.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ text = u'.handle_output(u'This page aims to introduce the most important elements of MoinMoin\'s synta...tted" (see HelpOnParsers).\n\nIts visibility gets toggled the same way.\n}}}\n') MoinMoin/converter2/_tests/test_moinwiki_out.py:36: AssertionError ________________________ TestCompositeDict.test_getitem ________________________ self = def test_getitem(self): expected_dicts = self.dicts > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:152: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:10,435 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,436 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,436 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,437 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,438 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,449 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,449 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,450 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:10,462 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:10,463 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,464 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,475 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,476 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,476 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,495 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,496 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,497 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:10,549 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,549 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,550 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,550 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,551 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,562 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,563 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,563 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:10,605 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:10,606 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,607 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,608 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,608 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,609 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,649 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,650 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,651 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________________ TestCompositeDict.test_contains ________________________ self = def test_contains(self): > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:161: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:10,707 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,708 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,708 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,709 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,710 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,722 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,723 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,724 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:10,741 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:10,742 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,743 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,743 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,744 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,744 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,755 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,756 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,756 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________________ TestCompositeDict.test_update _________________________ self = def test_update(self): > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:169: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:10,811 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,812 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,812 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,813 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,813 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,824 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,855 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,856 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:10,867 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:10,869 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,869 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,870 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,870 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,871 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,881 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,882 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,883 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________________ TestCompositeDict.test_get __________________________ self = def test_get(self): > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:177: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:10,902 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,903 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,903 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,904 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,905 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,916 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,917 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,918 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:10,936 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:10,937 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,938 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,938 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,939 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,940 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:10,951 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:10,952 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:10,953 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________________ TestCompositeGroupsBackend.test_contains ___________________ self = def test_contains(self): """ Test group_wiki Backend and Group containment methods. """ > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:45: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:10,986 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:10,987 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:10,987 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:10,988 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:10,988 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,001 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,001 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,003 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,014 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,016 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,016 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,017 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,017 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,018 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,029 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,029 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,030 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,042 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,043 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,043 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,044 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,044 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,055 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,055 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,056 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,074 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,076 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,077 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,077 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,078 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,078 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,089 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,089 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,090 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________ TestCompositeGroupsBackend.test_contains_group ________________ self = def test_contains_group(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:55: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,111 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,111 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,112 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,112 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,113 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,123 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,124 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,125 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,137 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,138 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,139 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,139 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,140 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,140 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,150 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,151 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,152 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestCompositeGroupsBackend.test_iter _____________________ self = def test_iter(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:61: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,172 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,173 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,173 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,174 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,174 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,185 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,186 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,186 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,204 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,206 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,206 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,207 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,207 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,208 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,218 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,219 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,220 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestCompositeGroupsBackend.test_get ______________________ self = def test_get(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:70: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,244 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,245 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,245 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,246 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,246 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,256 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,257 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,258 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,269 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,271 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,271 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,272 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,272 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,273 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,283 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,284 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,285 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________ TestCompositeGroupsBackend.test_groups_with_member ______________ self = def test_groups_with_member(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:78: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,304 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,305 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,306 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,306 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,307 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,318 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,318 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,319 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,330 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,332 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,332 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,333 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,333 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,334 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,352 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,353 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,353 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________ TestCompositeGroupsBackend.test_backend_acl_allow _______________ self = def test_backend_acl_allow(self): """ Test if the wiki group backend works with acl code. Check user which has rights. """ request = self.request acl_rights = ["AdminGroup:admin,read,write"] acl = security.AccessControlList(request.cfg, acl_rights) for user in self.expanded_groups['AdminGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, u"Admin1", permission), '%s must have %s permission because he is member of the AdminGroup' % (user, permission) MoinMoin/datastruct/backends/_tests/__init__.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'Admin1', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,373 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,374 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,374 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,375 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,376 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,386 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,387 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,387 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,399 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,401 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,401 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,402 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,402 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,403 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,413 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,414 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,414 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________ TestCompositeGroupsBackend.test_backend_acl_deny _______________ self = def test_backend_acl_deny(self): """ Test if the wiki group backend works with acl code. Check user which does not have rights. """ request = self.request acl_rights = ["AdminGroup:read,write"] acl = security.AccessControlList(request.cfg, acl_rights) > assert u"SomeUser" not in request.groups['AdminGroup'] E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,437 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,438 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,438 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,439 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,439 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,450 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,451 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,452 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,463 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,465 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,465 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,466 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,466 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,467 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,486 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,486 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,487 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________ TestCompositeGroupsBackend.test_backend_acl_with_all _____________ self = def test_backend_acl_with_all(self): request = self.request acl_rights = ["EditorGroup:read,write,admin All:read"] acl = security.AccessControlList(request.cfg, acl_rights) for member in self.expanded_groups[u'EditorGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, member, permission) MoinMoin/datastruct/backends/_tests/__init__.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'Admin1', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,508 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,508 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,509 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,509 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,510 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,522 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,522 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,523 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,534 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,536 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,537 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,537 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,538 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,538 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,550 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,551 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,551 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________ TestCompositeGroupsBackend.test_backend_acl_not_existing_group ________ self = def test_backend_acl_not_existing_group(self): request = self.request > assert u'NotExistingGroup' not in request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:133: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,575 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,575 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,576 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,576 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,577 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,588 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,589 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,589 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:11,600 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:11,602 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,602 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,603 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,603 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,604 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,623 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,623 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,624 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestConfigDictsBackend.test_getitem ______________________ self = def test_getitem(self): expected_dicts = self.dicts > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:152: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:11,980 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:11,981 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:11,981 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:11,982 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:11,983 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:11,993 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:11,994 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:11,995 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,006 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,008 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,009 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,010 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,010 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,011 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,022 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,023 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,023 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,043 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,044 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,044 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,045 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,046 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,227 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,228 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,229 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,240 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,242 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,242 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,243 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,244 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,244 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,256 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,257 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,258 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestConfigDictsBackend.test_contains _____________________ self = def test_contains(self): > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:161: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,278 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,279 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,280 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,281 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,282 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,293 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,294 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,296 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,307 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,309 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,310 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,310 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,311 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,312 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,323 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,324 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,324 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________ TestConfigDictsBackend.test_update ______________________ self = def test_update(self): > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:169: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,344 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,345 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,346 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,347 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,347 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,366 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,367 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,368 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,379 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,381 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,382 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,382 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,383 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,384 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,394 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,395 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,396 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________________ TestConfigDictsBackend.test_get ________________________ self = def test_get(self): > dicts = self.request.dicts E AttributeError: 'TestRequest' object has no attribute 'dicts' MoinMoin/datastruct/backends/_tests/__init__.py:177: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,417 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,418 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,418 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,419 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,420 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,430 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,431 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,432 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,445 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,446 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,447 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,448 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,448 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,449 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,460 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,461 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,462 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____________________ TestConfigGroupsBackend.test_contains _____________________ self = def test_contains(self): """ Test group_wiki Backend and Group containment methods. """ > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:45: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,493 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,493 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,494 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,495 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,496 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,513 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,514 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,515 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,526 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,529 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,529 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,530 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,531 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,531 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,542 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,543 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,544 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,556 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,557 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,557 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,558 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,559 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,570 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,571 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,572 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,583 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,585 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,586 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,586 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,587 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,588 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,599 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,599 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,600 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________ TestConfigGroupsBackend.test_contains_group __________________ self = def test_contains_group(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:55: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,620 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,621 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,621 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,622 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,623 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,641 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,642 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,642 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,654 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,656 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,657 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,657 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,658 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,659 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,669 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,670 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,671 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________ TestConfigGroupsBackend.test_iter _______________________ self = def test_iter(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:61: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,691 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,692 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,692 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,693 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,694 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,705 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,706 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,707 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,718 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,720 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,721 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,721 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,722 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,723 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,733 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,734 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,735 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________________ TestConfigGroupsBackend.test_get _______________________ self = def test_get(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:70: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,754 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,755 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,756 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,757 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,757 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,775 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,776 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,777 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,788 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,790 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,791 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,791 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,792 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,793 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,805 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,805 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,806 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________ TestConfigGroupsBackend.test_groups_with_member ________________ self = def test_groups_with_member(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:78: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,826 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,827 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,828 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,828 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,829 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,840 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,841 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,842 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,853 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,855 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,856 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,856 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,857 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,858 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,869 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,870 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,870 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________ TestConfigGroupsBackend.test_backend_acl_allow ________________ self = def test_backend_acl_allow(self): """ Test if the wiki group backend works with acl code. Check user which has rights. """ request = self.request acl_rights = ["AdminGroup:admin,read,write"] acl = security.AccessControlList(request.cfg, acl_rights) for user in self.expanded_groups['AdminGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, u"Admin1", permission), '%s must have %s permission because he is member of the AdminGroup' % (user, permission) MoinMoin/datastruct/backends/_tests/__init__.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'Admin1', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,890 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,891 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,892 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,892 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,893 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,910 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,911 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,912 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,924 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,926 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,926 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,927 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,928 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,929 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,939 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,940 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,941 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________ TestConfigGroupsBackend.test_backend_acl_deny _________________ self = def test_backend_acl_deny(self): """ Test if the wiki group backend works with acl code. Check user which does not have rights. """ request = self.request acl_rights = ["AdminGroup:read,write"] acl = security.AccessControlList(request.cfg, acl_rights) > assert u"SomeUser" not in request.groups['AdminGroup'] E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:12,964 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,965 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,965 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,966 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,967 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:12,978 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:12,979 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:12,979 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:12,991 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:12,993 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:12,993 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:12,996 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:12,996 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:12,997 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,009 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,010 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,011 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________ TestConfigGroupsBackend.test_backend_acl_with_all _______________ self = def test_backend_acl_with_all(self): request = self.request acl_rights = ["EditorGroup:read,write,admin All:read"] acl = security.AccessControlList(request.cfg, acl_rights) for member in self.expanded_groups[u'EditorGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, member, permission) MoinMoin/datastruct/backends/_tests/__init__.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'Admin1', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,032 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,033 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,034 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,034 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,037 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,054 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,055 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,056 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,069 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,071 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,072 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,073 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,073 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,074 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,084 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,085 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,086 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________ TestConfigGroupsBackend.test_backend_acl_not_existing_group __________ self = def test_backend_acl_not_existing_group(self): request = self.request > assert u'NotExistingGroup' not in request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:133: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,109 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,110 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,110 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,111 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,112 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,122 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,123 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,124 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,135 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,137 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,138 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,138 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,139 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,140 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,152 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,152 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,153 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________ TestLazyConfigGroups.test_contains ______________________ self = def test_contains(self): """ Test group_wiki Backend and Group containment methods. """ > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:45: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,185 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,186 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,186 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,187 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,188 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,205 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,206 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,207 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,218 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,220 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,221 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,221 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,222 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,223 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,234 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,235 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,236 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,247 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,248 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,248 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,249 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,250 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,261 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,262 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,263 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,274 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,275 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,276 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,277 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,277 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,278 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,291 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,291 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,292 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________________ TestLazyConfigGroups.test_iter ________________________ self = def test_iter(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:61: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,312 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,313 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,313 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,314 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,315 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,331 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,332 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,333 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,344 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,346 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,347 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,348 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,348 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,349 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,359 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,360 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,361 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________________ TestLazyConfigGroups.test_get _________________________ self = def test_get(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:70: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,381 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,382 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,383 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,383 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,384 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,396 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,397 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,398 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,411 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,413 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,413 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,414 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,415 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,416 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,426 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,427 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,428 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________ TestLazyConfigGroups.test_groups_with_member _________________ self = def test_groups_with_member(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:78: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,448 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,449 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,450 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,450 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,451 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,468 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,469 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,470 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,482 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,483 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,486 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,486 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,487 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,488 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,498 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,499 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,500 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________ TestLazyConfigGroups.test_backend_acl_allow __________________ self = def test_backend_acl_allow(self): """ Test if the wiki group backend works with acl code. Check user which has rights. """ request = self.request acl_rights = ["AdminGroup:admin,read,write"] acl = security.AccessControlList(request.cfg, acl_rights) for user in self.expanded_groups['AdminGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, u"Admin1", permission), '%s must have %s permission because he is member of the AdminGroup' % (user, permission) MoinMoin/datastruct/backends/_tests/__init__.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'Admin1', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,521 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,522 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,522 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,523 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,524 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,535 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,536 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,536 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,549 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,550 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,551 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,552 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,552 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,553 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,564 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,566 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,567 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________ TestLazyConfigGroups.test_backend_acl_deny __________________ self = def test_backend_acl_deny(self): """ Test if the wiki group backend works with acl code. Check user which does not have rights. """ request = self.request acl_rights = ["AdminGroup:read,write"] acl = security.AccessControlList(request.cfg, acl_rights) > assert u"SomeUser" not in request.groups['AdminGroup'] E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,590 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,591 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,591 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,592 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,593 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,609 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,610 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,611 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,623 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,625 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,626 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,626 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,627 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,628 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,639 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,640 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,641 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________ TestLazyConfigGroups.test_backend_acl_with_all ________________ self = def test_backend_acl_with_all(self): request = self.request acl_rights = ["EditorGroup:read,write,admin All:read"] acl = security.AccessControlList(request.cfg, acl_rights) for member in self.expanded_groups[u'EditorGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, member, permission) MoinMoin/datastruct/backends/_tests/__init__.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'John', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,662 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,662 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,663 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,664 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,664 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,676 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,677 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,678 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,690 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,692 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,692 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,693 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,694 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,695 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,706 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,707 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,708 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________ TestLazyConfigGroups.test_backend_acl_not_existing_group ___________ self = def test_backend_acl_not_existing_group(self): request = self.request > assert u'NotExistingGroup' not in request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:133: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:13,734 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,735 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,735 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,736 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,737 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,753 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,754 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,755 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:13,972 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:13,973 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:13,974 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:13,975 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:13,976 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:13,976 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:13,988 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:13,989 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:13,990 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ________________ TestCompositeAndLazyConfigGroups.test_contains ________________ self = def test_contains(self): """ Test group_wiki Backend and Group containment methods. """ > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:45: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,079 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,080 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,080 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,081 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,082 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,093 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,094 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,095 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,113 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,115 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,116 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,117 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,117 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,118 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,129 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,130 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,130 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,143 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,144 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,144 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,145 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,146 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,156 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,157 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,158 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,170 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,172 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,173 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,173 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,174 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,175 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,185 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,186 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,187 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________ TestCompositeAndLazyConfigGroups.test_contains_group _____________ self = def test_contains_group(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:55: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,208 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,208 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,209 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,210 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,211 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,221 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,222 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,223 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,241 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,243 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,244 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,245 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,245 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,246 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,257 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,258 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,258 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________ TestCompositeAndLazyConfigGroups.test_iter __________________ self = def test_iter(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:61: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,281 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,282 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,282 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,283 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,284 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,294 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,295 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,296 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,308 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,310 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,311 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,311 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,312 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,313 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,323 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,324 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,325 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________________ TestCompositeAndLazyConfigGroups.test_get ___________________ self = def test_get(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:70: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,345 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,346 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,347 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,347 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,348 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,359 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,360 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,361 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,378 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,380 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,381 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,381 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,382 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,383 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,394 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,395 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,396 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________ TestCompositeAndLazyConfigGroups.test_groups_with_member ___________ self = def test_groups_with_member(self): > groups = self.request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:78: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,416 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,417 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,418 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,419 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,419 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,430 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,431 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,431 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,443 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,445 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,446 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,446 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,447 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,448 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,458 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,459 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,460 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________ TestCompositeAndLazyConfigGroups.test_backend_acl_allow ____________ self = def test_backend_acl_allow(self): """ Test if the wiki group backend works with acl code. Check user which has rights. """ request = self.request acl_rights = ["AdminGroup:admin,read,write"] acl = security.AccessControlList(request.cfg, acl_rights) for user in self.expanded_groups['AdminGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, u"Admin1", permission), '%s must have %s permission because he is member of the AdminGroup' % (user, permission) MoinMoin/datastruct/backends/_tests/__init__.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'Admin1', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,480 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,481 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,481 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,482 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,483 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,494 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,496 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,497 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,514 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,516 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,517 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,518 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,518 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,519 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,530 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,531 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,531 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____________ TestCompositeAndLazyConfigGroups.test_backend_acl_deny ____________ self = def test_backend_acl_deny(self): """ Test if the wiki group backend works with acl code. Check user which does not have rights. """ request = self.request acl_rights = ["AdminGroup:read,write"] acl = security.AccessControlList(request.cfg, acl_rights) > assert u"SomeUser" not in request.groups['AdminGroup'] E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,554 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,555 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,556 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,557 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,557 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,568 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,569 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,569 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,582 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,584 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,584 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,585 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,586 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,586 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,597 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,598 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,599 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' __________ TestCompositeAndLazyConfigGroups.test_backend_acl_with_all __________ self = def test_backend_acl_with_all(self): request = self.request acl_rights = ["EditorGroup:read,write,admin All:read"] acl = security.AccessControlList(request.cfg, acl_rights) for member in self.expanded_groups[u'EditorGroup']: for permission in ["read", "write", "admin"]: > assert acl.may(request, member, permission) MoinMoin/datastruct/backends/_tests/__init__.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , name = u'Admin1', dowhat = 'read' def may(self, request, name, dowhat): """ May ? Returns boolean answer. Note: this just checks THIS ACL, the before/default/after ACL must be handled elsewhere, if needed. """ > groups = request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/security/__init__.py:234: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,620 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,621 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,621 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,622 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,623 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,633 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,634 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,635 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,653 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,655 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,656 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,656 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,657 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,658 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,668 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,669 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,670 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____ TestCompositeAndLazyConfigGroups.test_backend_acl_not_existing_group _____ self = def test_backend_acl_not_existing_group(self): request = self.request > assert u'NotExistingGroup' not in request.groups E AttributeError: 'TestRequest' object has no attribute 'groups' MoinMoin/datastruct/backends/_tests/__init__.py:133: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:14,693 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,694 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,694 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,695 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,696 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,706 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,707 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,708 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:14,720 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:14,721 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:14,722 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:14,723 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:14,723 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:14,724 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:14,735 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:14,736 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:14,737 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________________________ TestItem.testNonExistent ___________________________ self = def testNonExistent(self): > item = Item.create(self.request, 'DoesNotExist') MoinMoin/items/_tests/test_Item.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , request = name = 'DoesNotExist', mimetype = 'application/x-nonexistent', rev_no = -1 item = None @classmethod def create(cls, request, name=u'', mimetype=None, rev_no=None, item=None): if rev_no is None: rev_no = -1 if mimetype is None: mimetype = 'application/x-nonexistent' try: if item is None: > item = request.storage.get_item(name) E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/items/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:16,002 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,003 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,004 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,004 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,005 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,017 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,018 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,019 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,031 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,033 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,034 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,035 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,036 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,037 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,047 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,048 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,049 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,062 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,063 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,064 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,065 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,066 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,076 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,077 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,078 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,090 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,092 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,093 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,094 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,095 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,096 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,114 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,116 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,117 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________________________ TestItem.testClassFinder ___________________________ self = def testClassFinder(self): for mimetype, ExpectedClass in [ ('application/x-foobar', Binary), ('text/plain', Text), ('image/tiff', Image), ('image/png', TransformableBitmapImage), ]: > item = Item.create(self.request, 'foo', mimetype=mimetype) MoinMoin/items/_tests/test_Item.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , request = name = 'foo', mimetype = 'application/x-foobar', rev_no = -1, item = None @classmethod def create(cls, request, name=u'', mimetype=None, rev_no=None, item=None): if rev_no is None: rev_no = -1 if mimetype is None: mimetype = 'application/x-nonexistent' try: if item is None: > item = request.storage.get_item(name) E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/items/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:16,143 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,145 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,146 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,147 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,148 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,158 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,159 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,160 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,172 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,174 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,175 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,176 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,177 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,178 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,189 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,190 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,191 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________________ TestItem.testCRUD _______________________________ self = def testCRUD(self): name = u'NewItem' mimetype = 'text/plain' data = 'foobar' meta = dict(foo='bar') comment = u'saved it' > become_trusted(self.request) MoinMoin/items/_tests/test_Item.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:16,214 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,215 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,216 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,217 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,218 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,229 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,230 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,231 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,244 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,246 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,247 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,248 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,248 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,249 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,269 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,270 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,271 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ______________________________ TestItem.testIndex ______________________________ self = def testIndex(self): # create a toplevel and some sub-items basename = u'Foo' for name in ['', '/ab', '/cd/ef', '/gh', '/ij/kl', ]: > item = Item.create(self.request, basename + name) MoinMoin/items/_tests/test_Item.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , request = name = u'Foo', mimetype = 'application/x-nonexistent', rev_no = -1, item = None @classmethod def create(cls, request, name=u'', mimetype=None, rev_no=None, item=None): if rev_no is None: rev_no = -1 if mimetype is None: mimetype = 'application/x-nonexistent' try: if item is None: > item = request.storage.get_item(name) E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/items/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:16,293 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,294 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,295 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,296 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,297 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,308 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,309 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,310 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,322 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,324 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,325 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,329 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,330 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,331 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,341 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,342 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,343 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ___________________ TestTarItems.testCreateContainerRevision ___________________ self = def testCreateContainerRevision(self): """ creates a container and tests the content saved to the container """ request = self.request item_name = u'ContainerItem1' > item = Item.create(request, item_name, mimetype='application/x-tar') MoinMoin/items/_tests/test_Item.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , request = name = u'ContainerItem1', mimetype = 'application/x-tar', rev_no = -1 item = None @classmethod def create(cls, request, name=u'', mimetype=None, rev_no=None, item=None): if rev_no is None: rev_no = -1 if mimetype is None: mimetype = 'application/x-nonexistent' try: if item is None: > item = request.storage.get_item(name) E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/items/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:16,392 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,393 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,394 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,395 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,396 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,407 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,408 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,409 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,422 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,424 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,425 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,425 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,426 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,427 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,438 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,439 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,440 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,460 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,461 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,462 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,463 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,464 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,475 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,476 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,477 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,488 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,490 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,491 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,492 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,493 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,494 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,506 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,507 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,508 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _______________________ TestTarItems.testRevisionUpdate ________________________ self = def testRevisionUpdate(self): """ creates two revisions of a container item """ request = self.request item_name = u'ContainerItem2' > item = Item.create(request, item_name, mimetype='application/x-tar') MoinMoin/items/_tests/test_Item.py:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , request = name = u'ContainerItem2', mimetype = 'application/x-tar', rev_no = -1 item = None @classmethod def create(cls, request, name=u'', mimetype=None, rev_no=None, item=None): if rev_no is None: rev_no = -1 if mimetype is None: mimetype = 'application/x-nonexistent' try: if item is None: > item = request.storage.get_item(name) E AttributeError: 'TestRequest' object has no attribute 'storage' MoinMoin/items/__init__.py:110: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:16,531 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,532 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,532 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,533 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,534 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,546 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,547 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,548 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:16,560 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:16,561 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:16,562 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:16,563 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:16,564 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:16,565 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:16,576 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:16,577 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:16,578 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _____________________ TestSerializeRev.test_serialize_rev ______________________ self = def test_serialize_rev(self): params = (u'foo1', 0, dict(m1=u"m1"), 'bar1') > item = update_item(self.request, *params) MoinMoin/storage/_tests/test_serialization.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , name = u'foo1', revno = 0 meta = {'m1': u'm1'}, data = 'bar1' def update_item(request, name, revno, meta, data): > become_trusted(request) MoinMoin/storage/_tests/test_serialization.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:42,159 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,160 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,161 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,162 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,163 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,176 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,177 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,178 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,190 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:42,192 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,193 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,194 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,195 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,196 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,207 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,208 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,209 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,221 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,222 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,223 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,224 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,226 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,237 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,238 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,239 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,251 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:42,254 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,255 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,256 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,257 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,258 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,278 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,279 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,280 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ____________________ TestSerializeItem.test_serialize_item _____________________ self = def test_serialize_item(self): testparams = [ (u'foo2', 0, dict(m1=u"m1r0"), 'bar2'), (u'foo2', 1, dict(m1=u"m1r1"), 'baz2'), ] for params in testparams: > item = update_item(self.request, *params) MoinMoin/storage/_tests/test_serialization.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , name = u'foo2', revno = 0 meta = {'m1': u'm1r0'}, data = 'bar2' def update_item(request, name, revno, meta, data): > become_trusted(request) MoinMoin/storage/_tests/test_serialization.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:42,309 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,310 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,311 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,312 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,313 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,325 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,326 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,327 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,339 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:42,341 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,342 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,343 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,344 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,345 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,356 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,357 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,358 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,371 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,372 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,373 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,374 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,375 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,386 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,387 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,388 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,400 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:42,402 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,403 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,403 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,404 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,405 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,417 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,418 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,419 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' _________________ TestSerializeBackend.test_serialize_backend __________________ self = def test_serialize_backend(self): testparams = [ (u'foo3', 0, dict(m1=u"m1r0foo3"), 'bar1'), (u'foo4', 0, dict(m1=u"m1r0foo4"), 'bar2'), (u'foo4', 1, dict(m1=u"m1r1foo4"), 'baz2'), ] for params in testparams: > update_item(self.request, *params) MoinMoin/storage/_tests/test_serialization.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , name = u'foo3', revno = 0 meta = {'m1': u'm1r0foo3'}, data = 'bar1' def update_item(request, name, revno, meta, data): > become_trusted(request) MoinMoin/storage/_tests/test_serialization.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_trusted(request, username=u"TrustedUser"): """ modify request.user to make the user valid and trusted, so it is in acl group Trusted """ > become_valid(request, username) MoinMoin/_tests/__init__.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ request = , username = u'TrustedUser' def become_valid(request, username=u"ValidUser"): """ modify request.user to make the user valid. Note that a valid user will only be in ACL special group "Known", if we have a user profile for this user as the ACL system will check if there is a userid for this username. Thus, for testing purposes (e.g. if you need delete rights), it is easier to use become_trusted(). """ > request.user.name = username E AttributeError: 'TestRequest' object has no attribute 'user' MoinMoin/_tests/__init__.py:30: AttributeError --------------------------------- Captured log --------------------------------- __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' session.py 337 DEBUG finalize userobj = , setuid = None __init__.py 199 DEBUG moin does not support any language client accepts __init__.py 203 DEBUG fall back to cfg.language_default ('en') __init__.py 207 DEBUG setup_i18n_preauth returns 'en' session.py 303 DEBUG get_session for sid None session.py 318 DEBUG get_session returns session __init__.py 481 DEBUG session started for user None __init__.py 466 DEBUG setup_suid returns None, None __init__.py 214 DEBUG setup_i18n_postauth returns 'en' ------------------------------- Captured stderr -------------------------------- 2010-08-14 11:48:42,455 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,456 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,457 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,458 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,458 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,470 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,471 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,472 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,484 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:42,487 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,488 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,488 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,489 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,490 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,501 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,502 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,503 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,516 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,517 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,518 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,518 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,519 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,530 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,531 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,532 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' 2010-08-14 11:48:42,544 DEBUG MoinMoin.web.session:337 finalize userobj = , setuid = None 2010-08-14 11:48:42,546 DEBUG MoinMoin:199 moin does not support any language client accepts 2010-08-14 11:48:42,547 DEBUG MoinMoin:203 fall back to cfg.language_default ('en') 2010-08-14 11:48:42,548 DEBUG MoinMoin:207 setup_i18n_preauth returns 'en' 2010-08-14 11:48:42,549 DEBUG MoinMoin.web.session:303 get_session for sid None 2010-08-14 11:48:42,550 DEBUG MoinMoin.web.session:318 get_session returns session 2010-08-14 11:48:42,561 DEBUG MoinMoin.auth:481 session started for user None 2010-08-14 11:48:42,562 DEBUG MoinMoin.auth:466 setup_suid returns None, None 2010-08-14 11:48:42,563 DEBUG MoinMoin:214 setup_i18n_postauth returns 'en' ======== 114 failed, 1444 passed, 17 skipped, 49 error in 85.64 seconds ========