From: ATCT U. T. <plo...@ep...> - 2005-06-07 06:24:40
|
ATCT Unit Tests : FAILED (failures=2, errors=4) 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 (11.808s) Installing ATContentTypes ... done (0.471s) Installing ATReferenceBrowserWidget ... done (0.038s) Installing CMFCore ... done (0.331s) Installing CMFDefault ... done (0.047s) Installing CMFCalendar ... done (0.183s) Installing CMFTopic ... done (0.018s) Installing DCWorkflow ... done (0.251s) Installing CMFActionIcons ... done (0.075s) Installing CMFQuickInstallerTool ... done (0.544s) Installing CMFFormController ... done (0.076s) Installing ResourceRegistries ... done (0.139s) Installing GroupUserFolder ... done (0.912s) Installing ZCTextIndex ... done (0.743s) Installing ExtendedPathIndex ... done (0.080s) Installing SecureMailHost ... done (0.387s) Installing CMFPlone ... done (2.189s) Installing Archetypes ... done (0.337s) Installing ArchetypesTestUpdateSchema ... done (0.311s) Adding Plone Site ... done (10.844s) Adding CMFFormController ... done (0.001s) Adding Archetypes ... done (0.127s) Adding ATContentTypes done (0.004s) ............................................................................... ..................................................F...F........................ ............................................................................... ............................................................................... ............................................................................... ........................E.............E.....................EE................. ............................................................................. ====================================================================== ERROR: test_division_by_0_pil (test_atimage.TestSiteATImage) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_atimage.py", line 175, in test_division_by_0_pil IOError: [Errno 2] No such file or directory: 'test_DivisionError.jpg' ====================================================================== ERROR: test_migration (test_atimage.TestSiteATImage) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_atimage.py", line 118, in test_migration File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/migration/migrator.py", line 181, in migrate method() File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/migration/migrator.py", line 340, in migrate_dc newMut(oldValue) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/ExtensibleMetadata.py", line 357, in setFormat self.setContentType(value) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/BaseObject.py", line 354, in setContentType field.setContentType(self, value) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 860, in setContentType self.set(instance, file) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 2045, in set self.createScales(instance) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 2170, in createScales imgdata, format = self.scale(data, w, h) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 2206, in scale image = PIL.Image.open(original_file) File "/usr/local/python2.3/lib/python2.3/site-packages/PIL/Image.py", line 1745, in open raise IOError("cannot identify image file") IOError: cannot identify image file ====================================================================== ERROR: test_broken_exif (test_atimage.TestSiteATImageExif) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_atimage.py", line 269, 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 ====================================================================== ERROR: test_dcEdit (test_atimage.TestSiteATImageExif) ---------------------------------------------------------------------- Traceback (most recent call last): File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/atcttestcase.py", line 135, in test_dcEdit dcEdit(new) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/utils.py", line 119, in dcEdit obj.setFormat('text/structured') File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/ExtensibleMetadata.py", line 357, in setFormat self.setContentType(value) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/BaseObject.py", line 354, in setContentType field.setContentType(self, value) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 860, in setContentType self.set(instance, file) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 2045, in set self.createScales(instance) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 2170, in createScales imgdata, format = self.scale(data, w, h) File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/Field.py", line 2206, in scale image = PIL.Image.open(original_file) File "/usr/local/python2.3/lib/python2.3/site-packages/PIL/Image.py", line 1745, in open raise IOError("cannot identify image file") IOError: cannot identify image file ====================================================================== 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 163, in webdav.txt Failed example: print str(image.getImage()).strip() == str(input.read()).strip() Differences (ndiff with -expected +actual): - True + False ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 166, 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 193, 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 211, in webdav.txt Failed example: image = self.folder['test-my-image.gif'] 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[56]>", line 1, in ? image = self.folder['test-my-image.gif'] File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/Archetypes/BaseFolder.py", line 145, in __getitem__ return SkinnedFolder.__getitem__(self, key) File "/autotest/temp/python23-zope27/lib/python/OFS/ObjectManager.py", line 670, in __getitem__ raise KeyError, key KeyError: 'test-my-image.gif' ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 213, in webdav.txt Failed example: self.folder.objectIds() Differences (ndiff with -expected +actual): + ['.personal', 'test-document', 'test-document2.txt', 'test-image', 'test-image.gif', 'test my image.gif'] ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 215, in webdav.txt Failed example: print image.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[58]>", line 1, in ? print image.getPortalTypeName() NameError: name 'image' is not defined ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 218, in webdav.txt Failed example: print image.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[59]>", line 1, in ? print image.Title() NameError: name 'image' is not defined ---------------------------------------------------------------------- File "/autotest/temp/python23-zope27-cmf14-plone21-at13-atct10/Products/ATContentTypes/tests/webdav.txt", line 221, in webdav.txt Failed example: print image.getContentType() 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[60]>", line 1, in ? print image.getContentType() NameError: name 'image' is not defined ---------------------------------------------------------------------- Ran 551 tests in 114.356s FAILED (failures=2, errors=4) |