[cmf-tests] FAILED (errors=16) : CMF-2.0 Zope-trunk Python-2.4.3 : Linux

CMF Unit Tests cmf-tests at epy.co.at
Sat May 27 21:55:10 EDT 2006


CMF Unit Tests : FAILED (errors=16)
CMF-2.0 Zope-trunk Python-2.4.3 : Linux

Running /usr/local/python2.4/bin/python /home/stefan/autotest/temp/python24-zope210/test.py -q --config-file etc/zope.conf --path Products --test-path Products
/home/stefan/autotest/temp/python24-zope210/lib/python/Products/PluginIndexes/__init__.py:19: DeprecationWarning: Using TextIndex is deprecated (will be removed in Zope 2.12). Use ZCTextIndex instead.
  import TextIndex.TextIndex
/home/stefan/autotest/temp/python24-zope210/lib/python/Products/ZCatalog/__init__.py:18: DeprecationWarning: ZClasses are deprecated, unmaintained and should no longer be used
  from ZClasses import createZClassForBase
/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/FSFile.py:23: DeprecationWarning: zope.app.content_types has moved to zope.contenttype. Import of zope.app.content_types will become unsupported in Zope 3.5
  from zope.app.content_types import guess_content_type
/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Application.py:710: DeprecationWarning: Using Gadfly and ZGadflyDA is deprecated. The module will be removed in Zope 2.11)
  product=__import__(pname, global_dict, global_dict, silly)
/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFDefault/skin/configure.zcml:6: DeprecationWarning: Creating layers via ZCML has been deprecated.  The browser:layer directive will be removed in Zope 3.5.  Layers are now interfaces extending zope.publisher.interfaces.browser.IBrowserRequest. They do not need further registration.
  <browser:layer
/home/stefan/autotest/temp/python24-zope210/lib/python/zope/configuration/config.py:690: DeprecationWarning: The five:traversable statement is no longer needed and will be removed in Zope 2.12.
  actions = self.handler(context, **args)
/home/stefan/autotest/temp/python24-zope210/lib/python/zope/configuration/config.py:184: DeprecationWarning: zope.app.event.interfaces has moved to zope.lifecycleevent.interfaces. Import of zope.app.event.interfaces will become unsupported in Zope 3.5
  mod = __import__(mname, *_import_chickens)
/home/stefan/autotest/temp/python24-zope210/lib/python/zope/configuration/config.py:199: DeprecationWarning: IObjectEvent is deprecated. IObjectEvent has moved to zope.component.interfaces
  obj = getattr(mod, oname)
Parsing /home/stefan/autotest/temp/python24-zope210-cmf20/etc/zope.conf
Running unit tests:


Error in test test_EventEndingMidnight (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 645, in test_EventEndingMidnight
    , end_date=day_after
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event



Error in test test_eventCalendarRenderingIssue411 (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 303, in test_eventCalendarRenderingIssue411
    self.Site.Members.invokeFactory(type_name="Event",id='Event1')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event



Error in test test_firstDayRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 577, in test_firstDayRendering
    end_date='2002/05/31 23:59:59')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event



Error in test test_lastDayRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 549, in test_lastDayRendering
    end_date='2002/05/31 23:59:59')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event



Error in test test_noSessions_fiveview (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 173, in test_noSessions_fiveview
    self._testURL('/CalendarTest/@@calendar_widget', ())
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 144, in _testURL
    obj = Site.restrictedTraverse(url)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 278, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=1)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 204, in unrestrictedTraverse
    raise AttributeError(name)
AttributeError: @@calendar_widget



Error in test test_noSessions_skinsview (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 166, in test_noSessions_skinsview
    self._testURL('/CalendarTest/calendarBox', ())
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 144, in _testURL
    obj = Site.restrictedTraverse(url)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 278, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=1)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 246, in unrestrictedTraverse
    next=obj[name]
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/ObjectManager.py", line 749, in __getitem__
    raise KeyError, key
KeyError: 'calendarBox'



Error in test test_sessions_fiveview (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 159, in test_sessions_fiveview
    self._testURL('/CalendarTest/@@calendar_widget', ())
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 144, in _testURL
    obj = Site.restrictedTraverse(url)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 278, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=1)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 204, in unrestrictedTraverse
    raise AttributeError(name)
AttributeError: @@calendar_widget



Error in test test_sessions_skinsview (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 152, in test_sessions_skinsview
    self._testURL('/CalendarTest/calendarBox', ())
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 144, in _testURL
    obj = Site.restrictedTraverse(url)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 278, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=1)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 246, in unrestrictedTraverse
    next=obj[name]
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/ObjectManager.py", line 749, in __getitem__
    raise KeyError, key
KeyError: 'calendarBox'



Error in test test_simpleCalendarRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 225, in test_simpleCalendarRendering
    result = self.Tool.getEventsForCalendar(month='5', year='2002')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/CalendarTool.py", line 162, in getEventsForCalendar
    events = self.catalog_getevents(year, month)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/CalendarTool.py", line 191, in catalog_getevents
    sort_on='start' )
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/CatalogTool.py", line 205, in searchResults
    return ZCatalog.searchResults(self, REQUEST, **kw)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/Products/ZCatalog/ZCatalog.py", line 665, in searchResults
    return self._catalog.searchResults(REQUEST, used, **kw)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/Products/ZCatalog/Catalog.py", line 726, in searchResults
    sort_index = self._getSortIndex(args)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/Products/ZCatalog/Catalog.py", line 709, in _getSortIndex
    raise CatalogError, 'Unknown sort_on index (%s)' % sort_index_name
CatalogError: Unknown sort_on index (start)



Error in test test_singleDayRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 442, in test_singleDayRendering
    self.Site.Members.invokeFactory(type_name="Event",id='Event1')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event



Error in test test_singleEventCalendarRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 230, in test_singleEventCalendarRendering
    self.Site.Members.invokeFactory(type_name="Event",id='Event1')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event



Error in test test_spanningEventCalendarRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 351, in test_spanningEventCalendarRendering
    self.Site.Members.invokeFactory(type_name="Event",id='Event1')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event



Error in test test_workflowStateRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCalendar/tests/test_Calendar.py", line 605, in test_workflowStateRendering
    end_date='2002/05/01 13:30:00')
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/PortalFolder.py", line 310, in invokeFactory
    return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/TypesTool.py", line 680, in constructContent
    raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Event

/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/exportimport/tests/test_content.py:48: DeprecationWarning: zope.app.tests has moved to zope.app.testing. Import of zope.app.tests will become unsupported in Zope 3.5
  from zope.app.tests import ztapi
/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/tests/base/testcase.py:52: DeprecationWarning: FiveTraversable is deprecated. __bobo_traverse__ and ITraverser/ITraversable for controlling URL traversal have become obsolete. Use an IPublishTraverse adapter instead.  This reference will go away in Zope 2.12.
  from Products.Five.traversable import FiveTraversable


Error in test test_reindexObjectSecurity_missing_noraise (CMFCore.tests.test_CMFCatalogAware.CMFCatalogAwareTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/tests/test_CMFCatalogAware.py", line 184, in test_reindexObjectSecurity_missing_noraise
    self.assertEqual( len(self.logged), 1 ) # logging because no raise
TypeError: len() of unsized object



Error in test test_allMetaTypes (CMFCore.tests.test_TypesTool.TypesToolTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFCore/tests/test_TypesTool.py", line 111, in test_allMetaTypes
    act = tool.unrestrictedTraverse(html_quote(factype['action']))
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/OFS/Traversable.py", line 263, in unrestrictedTraverse
    obj = next
UnboundLocalError: local variable 'next' referenced before assignment

<string>:1: DeprecationWarning: setDefaultSkin is deprecated. setDefaultSkin has been moved to zope.publisher.browser. This reference will be removed in Zope 3.5.


Error in test testHTML (CMFDefault.tests.test_Document.DocumentFTPGetTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope210-cmf20/Products/CMFDefault/tests/test_Document.py", line 391, in testHTML
    ZopePageTemplate('source_html') )
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 135, in __init__
    self.pt_edit(text, content_type, encoding)
  File "/home/stefan/autotest/temp/python24-zope210/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 151, in pt_edit
    text = text.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

  Ran 1258 tests with 0 failures and 16 errors in 67.585 seconds.

FAILED (errors=16)


More information about the cmf-tests mailing list