From: Archetypes U. T. <plo...@ep...> - 2005-12-29 03:33:58
|
Archetypes Unit Tests : FAILED (failures=8, errors=3) AT-1_3-branch Plone-2_0-branch Zope-2_7-branch Python-2.3.5 Running /usr/local/python2.3/bin/python /home/stefan/autotest/temp/python23-zope27/test.py --config-file zope.conf --libdir . --dir Archetypes !test_cmfessentials Installing CMFCore ... done (0.010s) Installing CMFDefault ... done (0.008s) Installing CMFCalendar ... done (0.049s) Installing CMFTopic ... done (0.007s) Installing DCWorkflow ... done (0.108s) Installing CMFActionIcons ... done (0.018s) Installing CMFQuickInstallerTool ... done (0.254s) Installing CMFFormController ... done (0.288s) Installing MimetypesRegistry ... done (0.119s) Installing PortalTransforms ... done (0.007s) Installing Archetypes ... done (0.949s) Installing ArchetypesTestUpdateSchema ... NOT FOUND Adding CMF Site ... done (0.274s) Adding Quickinstaller Tool ... done (0.003s) Adding CMFFormController ... done (0.007s) Adding Archetypes ... done (1.338s) Failed to import ZPsycopgDA Failed to import ZMySQLDA /home/stefan/autotest/temp/python23-zope27/lib/python/Interface/_InterfaceClass.py:211: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up return "<%s %s at %x>" % (self.__class__.__name__, name, id(self)) ====================================================================== ERROR: test_createObjectInCodeDoesNotSetFlag (Archetypes.tests.test_functional.TestFunctionalObjectCreation) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp self.afterSetUp() File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_functional.py", line 79, in afterSetUp self.error_log = self.portal.error_log AttributeError: error_log ====================================================================== ERROR: test_createObjectViaWebDAV (Archetypes.tests.test_functional.TestFunctionalObjectCreation) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp self.afterSetUp() File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_functional.py", line 79, in afterSetUp self.error_log = self.portal.error_log AttributeError: error_log ====================================================================== ERROR: test_update_schema_does_not_reset_creation_flag (Archetypes.tests.test_functional.TestFunctionalObjectCreation) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp self.afterSetUp() File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_functional.py", line 79, in afterSetUp self.error_log = self.portal.error_log AttributeError: error_log ====================================================================== FAIL: Doctest: Products.Archetypes.AllowedTypesByIface.AllowedTypesByIfaceMixin ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/zopedoctest/doctest.py", line 2154, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for Products.Archetypes.AllowedTypesByIface.AllowedTypesByIfaceMixin File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/AllowedTypesByIface.py", line 31, in AllowedTypesByIfaceMixin ---------------------------------------------------------------------- File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/AllowedTypesByIface.py", line 41, in Products.Archetypes.AllowedTypesByIface.AllowedTypesByIfaceMixin Failed example: self.folder.invokeFactory('ATBIFolder', 'f') Expected: 'f' Got nothing ====================================================================== FAIL: test_processing (Archetypes.tests.test_fields.ProcessingTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_fields.py", line 175, in test_processing self.assertEquals(got, v, 'got: %r, expected: %r, field "%s"' % File "/usr/local/python2.3/lib/python2.3/unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: got: '<img src="cmf/dummy/imagefield" alt="Spam" title="Spam" height="16" width="16" />', expected: '<img src="cmf/dummy/imagefield" alt="Spam" title="Spam" height="16" width="16" border="0" />', field "imagefield" ====================================================================== FAIL: test_processing_fieldset (Archetypes.tests.test_fields.ProcessingTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_fields.py", line 210, in test_processing_fieldset self.assertEquals(got, v, 'got: %r, expected: %r, field "%s"' % File "/usr/local/python2.3/lib/python2.3/unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: got: '<img src="cmf/dummy/imagefield" alt="Spam" title="Spam" height="16" width="16" />', expected: '<img src="cmf/dummy/imagefield" alt="Spam" title="Spam" height="16" width="16" border="0" />', field "imagefield" ====================================================================== FAIL: Doctest: traversal_4981.txt ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/zopedoctest/doctest.py", line 2154, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for traversal_4981.txt File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/traversal_4981.txt", line 0 ---------------------------------------------------------------------- File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/traversal_4981.txt", line 12, in traversal_4981.txt Failed example: print http(r""" HEAD /%s/test_document HTTP/1.0 Authorization: Basic %s:%s """ % (portal_name, user_name, user_password)) Differences (ndiff with -expected +actual): - HTTP/1.0 200 OK - ... + HTTP/1.0 401 Unauthorized + Content-Length: 187 + Content-Type: text/html + Www-Authenticate: basic realm="Zope" + <BLANKLINE> + <strong>You are not authorized to access this resource.</strong><p> + Username and password are not correct. (Also, an error occurred while attempting to render the standard error message.) ---------------------------------------------------------------------- File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/traversal_4981.txt", line 19, in traversal_4981.txt Failed example: print http(r""" HEAD /%s/simple_folder/test_document HTTP/1.0 Authorization: Basic %s:%s """ % (portal_name, user_name, user_password)) Differences (ndiff with -expected +actual): - HTTP/1.0 200 OK - ... + HTTP/1.0 401 Unauthorized + Content-Length: 187 + Content-Type: text/html + Www-Authenticate: basic realm="Zope" + <BLANKLINE> + <strong>You are not authorized to access this resource.</strong><p> + Username and password are not correct. (Also, an error occurred while attempting to render the standard error message.) ---------------------------------------------------------------------- File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/traversal_4981.txt", line 26, in traversal_4981.txt Failed example: print http(r""" HEAD /%s/simple_btree_folder/test_document HTTP/1.0 Authorization: Basic %s:%s """ % (portal_name, user_name, user_password)) Differences (ndiff with -expected +actual): - HTTP/1.0 200 OK - ... + HTTP/1.0 401 Unauthorized + Content-Length: 187 + Content-Type: text/html + Www-Authenticate: basic realm="Zope" + <BLANKLINE> + <strong>You are not authorized to access this resource.</strong><p> + Username and password are not correct. (Also, an error occurred while attempting to render the standard error message.) ====================================================================== FAIL: test_attribute_access_has_perm (Archetypes.tests.test_security.AttributeProtectionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_security.py", line 69, in test_attribute_access_has_perm self.check(self.check_attrs) File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_security.py", line 57, in check self.fail(e) File "/usr/local/python2.3/lib/python2.3/unittest.py", line 270, in fail raise self.failureException, msg AssertionError: You are not allowed to access 'SimpleProtectedType' in this context ====================================================================== FAIL: test_method_access_has_perm (Archetypes.tests.test_security.AttributeProtectionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_security.py", line 79, in test_method_access_has_perm self.check(self.check_methods) File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_security.py", line 57, in check self.fail(e) File "/usr/local/python2.3/lib/python2.3/unittest.py", line 270, in fail raise self.failureException, msg AssertionError: You are not allowed to access 'SimpleProtectedType' in this context ====================================================================== FAIL: test_addComplexTypeCtor (Archetypes.tests.test_sitepolicy.SitePolicyTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_sitepolicy.py", line 113, in test_addComplexTypeCtor self.assertEqual(obj.getTextfield(), 'Bla') File "/usr/local/python2.3/lib/python2.3/unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: '' != 'Bla' ====================================================================== FAIL: test_tupleinit (Archetypes.tests.test_utils2.OrderedDictTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/stefan/autotest/temp/python23-zope27-cmf14-plone20-at13/Products/Archetypes/tests/test_utils2.py", line 99, in test_tupleinit self.assertEqual(data, tuple(od.items())) File "/usr/local/python2.3/lib/python2.3/unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: (('a', 0), ('b', 1), ('c', 2), ('d', 3), ('e', 4), ('f', 5), ('g', 6)) != (('a', 0), ('b', 1), ('c', 2), ('d', 3), ('e', 4), ('f', 5), ('g', 6), ('a', 0), ('c', 2), ('b', 1), ('e', 4), ('d', 3), ('g', 6), ('f', 5)) ---------------------------------------------------------------------- Ran 328 tests in 82.728s FAILED (failures=8, errors=3) |