From: ATCT U. T. <plo...@ep...> - 2005-06-22 07:13:55
|
ATCT Unit Tests : FAILED (failures=2, errors=2) ATCT-1_0-branch Plone-2.1 Zope-2_7-branch Python-2.3.5 Running /usr/local/python2.3/bin/python ATContentTypes/tests/runalltests.py Loading Zope, please stand by ... done (22.658s) Installing ATContentTypes ... done (0.473s) Installing ATReferenceBrowserWidget ... done (0.039s) Installing CMFCore ... done (0.114s) Installing CMFDefault ... done (0.055s) Installing CMFCalendar ... done (0.142s) Installing CMFTopic ... done (0.028s) Installing DCWorkflow ... done (0.263s) Installing CMFActionIcons ... done (0.051s) Installing CMFQuickInstallerTool ... done (0.183s) Installing CMFFormController ... done (0.060s) Installing ResourceRegistries ... done (0.153s) Installing GroupUserFolder ... done (0.645s) Installing ZCTextIndex ... done (0.467s) Installing ExtendedPathIndex ... done (0.094s) Installing SecureMailHost ... done (0.400s) Installing CMFPlone ... done (1.913s) Installing Archetypes ... done (0.257s) Installing ArchetypesTestUpdateSchema ... done (0.055s) Adding Plone Site ... done (14.290s) Adding CMFFormController ... done (0.002s) Adding Archetypes ... done (0.127s) Adding ATContentTypes done (0.004s) ............................................................................... ...................................................F...F....................... ...........................................................E................... ............................................................................... ............................................................................... ...............................................................E............... ............................................................................... . ====================================================================== ERROR: test_acquireFromHetereogenousParent (test_constraintypes.TestConstrainTypes) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_constraintypes.py", line 169, in test_acquireFromHetereogenousParent File "/usr/local/python2.3/lib/python2.3/unittest.py", line 289, in failUnlessRaises callableObj(*args, **kwargs) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/lib/constraintypes.py", line 273, in invokeFactory RESPONSE=None, *args, **kw) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/CMFCore/PortalFolder.py", line 365, in invokeFactory raise ValueError, 'Disallowed subobject type: %s' % type_name ValueError: Disallowed subobject type: CMF Folder ====================================================================== ERROR: test_broken_exif (test_atimage.TestSiteATImageExif) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_atimage.py", line 268, in test_broken_exif File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/lib/exif.py", line 1148, in process_file hdr.decode_maker_note() File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/lib/exif.py", line 1039, in decode_maker_note dict=MAKERNOTE_CANON_TAGS) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/lib/exif.py", line 835, in dump_IFD raise ValueError, \ ValueError: unknown type 768 in tag 0x0100 ====================================================================== FAIL: test_release_settings_SAVE_TO_FAIL_FOR_DEVELOPMENT (test_installation.TestInstallation) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_installation.py", line 124, in test_release_settings_SAVE_TO_FAIL_FOR_DEVELOPMENT File "/usr/local/python2.3/lib/python2.3/unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: False != True ====================================================================== FAIL: Doctest: webdav.txt ---------------------------------------------------------------------- Traceback (most recent call last): File "/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 webdav.txt File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 0 ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 185, in webdav.txt Failed example: print str(file.getFile()) == input.read() Differences (ndiff with -expected +actual): - True + False ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 251, in webdav.txt Failed example: print str(image.getImage()) == input.read() Differences (ndiff with -expected +actual): - True + False ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 254, in webdav.txt Failed example: print image.getContentType() Differences (ndiff with -expected +actual): - image/gif + application/octet-stream ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 281, in webdav.txt Failed example: print image.getContentType() Differences (ndiff with -expected +actual): - image/gif + application/octet-stream ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 304, in webdav.txt Failed example: self.folder.objectIds() Differences (ndiff with -expected +actual): + ['.personal', 'test-document', 'test-document2.txt', 'test-event.event', 'test-file', 'test-file.zip', 'test-image', 'test-image.gif', 'test my image.gif'] ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 312, in webdav.txt Failed example: print image.getContentType() Differences (ndiff with -expected +actual): - image/gif + application/octet-stream ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 349, in webdav.txt Failed example: print http(r""" PUT /%s/test-newsitem.news HTTP/1.1 Authorization: Basic %s:%s Depth: 0 %s """ % (fpath, user_name, user_password, input.read())) Differences (ndiff with -expected +actual): - HTTP/1.1 201 Created - ... + HTTP/1.1 500 Internal Server Error + Accept-Ranges: none + Connection: close + Content-Length: 2038 + Content-Type: text/html + Date: Wed, 22 Jun 2005 07:09:03 GMT + <BLANKLINE> + <TABLE BORDER="0" WIDTH="100%"> + <TR VALIGN="TOP"> + <BLANKLINE> + <TD WIDTH="10%" ALIGN="CENTER"> + + </TD> + <BLANKLINE> + <TD WIDTH="90%"> + <H2>Site Error</H2> + <P>An error was encountered while publishing this resource. + </P> + <P><STRONG>IOError</STRONG></P> + <BLANKLINE> + Sorry, a site error occurred.<p><p>Traceback (innermost last): + <ul> + <BLANKLINE> + <li> Module ZPublisher.Test, line 198, in publish_module</li> + <BLANKLINE> + <li> Module ZPublisher.Publish, line 132, in publish</li> + <BLANKLINE> + <li> Module Zope.App.startup, line 204, in zpublisher_exception_hook</li> + <BLANKLINE> + <li> Module ZPublisher.Publish, line 101, in publish</li> + <BLANKLINE> + <li> Module ZPublisher.mapply, line 88, in mapply</li> + <BLANKLINE> + <li> Module ZPublisher.Publish, line 39, in call_object</li> + <BLANKLINE> + <li> Module webdav.NullResource, line 154, in PUT</li> + <BLANKLINE> + <li> Module Products.Archetypes.BaseContent, line 121, in PUT</li> + <BLANKLINE> + <li> Module Products.Archetypes.utils, line 143, in mapply</li> + <BLANKLINE> + <li> Module Products.Archetypes.Marshall, line 144, in demarshall</li> + <BLANKLINE> + <li> Module Products.Archetypes.ClassGen, line 78, in generatedMutator</li> + <BLANKLINE> + <li> Module Products.Archetypes.Field, line 2044, in set</li> + <BLANKLINE> + <li> Module Products.Archetypes.Field, line 2182, in createScales<br /> + __traceback_info__: (<Field image(image:rw)>, <ATNewsItem at /plone/Members/test_user_1_/test-newsitem.news>, 'image_mini', 200, 200)</li> + <BLANKLINE> + <li> Module Products.Archetypes.Field, line 2219, in scale</li> + <BLANKLINE> + <li> Module PIL.Image, line 1745, in open</li> + <BLANKLINE> + </ul>IOError: cannot identify image file (Also, an error occurred while attempting to render the standard error message.) + </p> + <HR NOSHADE> + <BLANKLINE> + <P>Troubleshooting Suggestions</P> + <BLANKLINE> + <UL> + <LI>The URL may be incorrect.</LI> + <LI>The parameters passed to this resource may be incorrect.</LI> + <LI>A resource that this resource relies on may be + encountering an error.</LI> + </UL> + <BLANKLINE> + <P>For more detailed information about the error, please + refer to error log. + </P> + <BLANKLINE> + <P>If the error persists please contact the site maintainer. + Thank you for your patience. + </P> + </TD></TR> + </TABLE> ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 361, in webdav.txt Failed example: news = self.folder['test-newsitem.news'] Exception raised: Traceback (most recent call last): File "/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/zopedoctest/doctest.py", line 1245, in __run compileflags, 1) in test.globs File "<doctest webdav.txt[95]>", line 1, in ? news = self.folder['test-newsitem.news'] File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/BaseFolder.py", line 182, in __getitem__ return PortalFolder.__getitem__(self, key) File "/autotest/temp/python23-zope27/lib/python/OFS/ObjectManager.py", line 670, in __getitem__ raise KeyError, key KeyError: 'test-newsitem.news' ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 363, in webdav.txt Failed example: print news.getPortalTypeName() Exception raised: Traceback (most recent call last): File "/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/zopedoctest/doctest.py", line 1245, in __run compileflags, 1) in test.globs File "<doctest webdav.txt[96]>", line 1, in ? print news.getPortalTypeName() NameError: name 'news' is not defined ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 366, in webdav.txt Failed example: print news.Title() Exception raised: Traceback (most recent call last): File "/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/zopedoctest/doctest.py", line 1245, in __run compileflags, 1) in test.globs File "<doctest webdav.txt[97]>", line 1, in ? print news.Title() NameError: name 'news' is not defined ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 369, in webdav.txt Failed example: del news Exception raised: Traceback (most recent call last): File "/autotest/temp/python23-zope27/lib/python/Testing/ZopeTestCase/zopedoctest/doctest.py", line 1245, in __run compileflags, 1) in test.globs File "<doctest webdav.txt[98]>", line 1, in ? del news NameError: name 'news' is not defined ---------------------------------------------------------------------- Ran 554 tests in 107.769s FAILED (failures=2, errors=2) |