[cmf-tests] FAILED (failures=7, errors=20) : CMF-trunk Zope-trunk Python-2.4.4 : Linux

CMF Unit Tests cmf-tests at epy.co.at
Sat Dec 23 21:58:18 EST 2006


CMF Unit Tests : FAILED (failures=7, errors=20)
CMF-trunk Zope-trunk Python-2.4.4 : Linux

Running /usr/local/python2.4/bin/python /home/stefan/autotest/temp/python24-zope211/test.py -q --config-file etc/zope.conf --path Products --test-path Products
Parsing /home/stefan/autotest/temp/python24-zope211-cmf21/etc/zope.conf
Running unit tests:


Error in test test_customize (CMFCore.tests.test_FSPageTemplate.FSPageTemplateCustomizationTests)
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-zope211-cmf21/Products/CMFCore/tests/test_FSPageTemplate.py", line 153, in test_customize
    self.fsPT.manage_doCustomize( folder_path='custom' )
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/FSObject.py", line 85, in manage_doCustomize
    obj = self._createZODBClone()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/FSPageTemplate.py", line 75, in _createZODBClone
    obj.write(self.read())
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
    raise TypeError("'text' parameter must be unicode")
TypeError: 'text' parameter must be unicode



Error in test test_customize_caching (CMFCore.tests.test_FSPageTemplate.FSPageTemplateCustomizationTests)
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-zope211-cmf21/Products/CMFCore/tests/test_FSPageTemplate.py", line 169, in test_customize_caching
    self.fsPT.manage_doCustomize(folder_path='custom')
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/FSObject.py", line 85, in manage_doCustomize
    obj = self._createZODBClone()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/FSPageTemplate.py", line 75, in _createZODBClone
    obj.write(self.read())
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
    raise TypeError("'text' parameter must be unicode")
TypeError: 'text' parameter must be unicode



Error in test test_dontExpandOnCreation (CMFCore.tests.test_FSPageTemplate.FSPageTemplateCustomizationTests)
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-zope211-cmf21/Products/CMFCore/tests/test_FSPageTemplate.py", line 177, in test_dontExpandOnCreation
    self.fsPT.manage_doCustomize( folder_path='custom' )
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/FSObject.py", line 85, in manage_doCustomize
    obj = self._createZODBClone()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/FSPageTemplate.py", line 75, in _createZODBClone
    obj.write(self.read())
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
    raise TypeError("'text' parameter must be unicode")
TypeError: 'text' parameter must be unicode



Error in test test_304_response_from_cpm (CMFCore.tests.test_FSReSTMethod.FSReSTMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 251, in run
    self.setUp()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 82, in setUp
    FSReSTMaker.setUp(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 34, in setUp
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test___call__ (CMFCore.tests.test_FSReSTMethod.FSReSTMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 251, in run
    self.setUp()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 82, in setUp
    FSReSTMaker.setUp(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 34, in setUp
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_caching (CMFCore.tests.test_FSReSTMethod.FSReSTMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 251, in run
    self.setUp()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 82, in setUp
    FSReSTMaker.setUp(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 34, in setUp
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_ownership (CMFCore.tests.test_FSReSTMethod.FSReSTMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 251, in run
    self.setUp()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 82, in setUp
    FSReSTMaker.setUp(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 34, in setUp
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_customize (CMFCore.tests.test_FSReSTMethod.FSReSTMethodCustomizationTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 251, in run
    self.setUp()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 157, in setUp
    FSReSTMaker.setUp(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 34, in setUp
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_customize_caching (CMFCore.tests.test_FSReSTMethod.FSReSTMethodCustomizationTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 251, in run
    self.setUp()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 157, in setUp
    FSReSTMaker.setUp(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSReSTMethod.py", line 34, in setUp
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None

2006-12-24 03:45:37 WARNING ZODB.DB DB.open() has 8 open connections with a pool_size of 7


Error in test test_304_response_from_cpm (CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 270, in run
    self.tearDown()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 109, in tearDown
    _TemplateSwitcher.tearDown(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 77, in tearDown
    self._setWhichTemplate(self._old_STX_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test___call___with_DTML (CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 270, in run
    self.tearDown()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 109, in tearDown
    _TemplateSwitcher.tearDown(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 77, in tearDown
    self._setWhichTemplate(self._old_STX_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test___call___with_ZPT (CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests)
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-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 119, in test___call___with_ZPT
    self._setWhichTemplate('ZPT')
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test___call___with_ZPT (CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 270, in run
    self.tearDown()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 109, in tearDown
    _TemplateSwitcher.tearDown(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 77, in tearDown
    self._setWhichTemplate(self._old_STX_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_caching (CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 270, in run
    self.tearDown()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 109, in tearDown
    _TemplateSwitcher.tearDown(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 77, in tearDown
    self._setWhichTemplate(self._old_STX_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_ownership (CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests)
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 270, in run
    self.tearDown()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 109, in tearDown
    _TemplateSwitcher.tearDown(self)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 77, in tearDown
    self._setWhichTemplate(self._old_STX_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_customize_caching (CMFCore.tests.test_FSSTXMethod.FSSTXMethodCustomizationTests)
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-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 257, in test_customize_caching
    self._setWhichTemplate('ZPT')
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Error in test test_customize_with_ZPT (CMFCore.tests.test_FSSTXMethod.FSSTXMethodCustomizationTests)
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-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 235, in test_customize_with_ZPT
    self._setWhichTemplate('ZPT')
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCore/tests/test_FSSTXMethod.py", line 90, in _setWhichTemplate
    main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 116, in __init__
    self.pt_edit(text, content_type)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 161, in pt_edit
    raise ValueError('Unsupported content-type %s' % content_type)
ValueError: Unsupported content-type None



Failure in test test_constructInstance_wo_Roles (CMFCore.tests.test_TypesTool.FTIOldstyleConstructionTests)
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-zope211-cmf21/Products/CMFCore/tests/test_TypesTool.py", line 398, in test_constructInstance_wo_Roles
    self.ti.constructInstance, self.f, 'foo')
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 326, in failUnlessRaises
    raise self.failureException, "%s not raised" % excName
AssertionError: Unauthorized not raised



Failure in test test_isConstructionAllowed_wo_Role (CMFCore.tests.test_TypesTool.FTIOldstyleConstructionTests)
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-zope211-cmf21/Products/CMFCore/tests/test_TypesTool.py", line 393, in test_isConstructionAllowed_wo_Role
    self.failIf(self.ti.isConstructionAllowed(self.f))
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 305, in failIf
    if expr: raise self.failureException, msg
AssertionError



Failure in test test_isConstructionAllowed_wo_Security (CMFCore.tests.test_TypesTool.FTIOldstyleConstructionTests)
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-zope211-cmf21/Products/CMFCore/tests/test_TypesTool.py", line 382, in test_isConstructionAllowed_wo_Security
    self.failIf(self.ti.isConstructionAllowed(self.f))
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 305, in failIf
    if expr: raise self.failureException, msg
AssertionError



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-zope211-cmf21/Products/CMFDefault/tests/test_Document.py", line 394, in testHTML
    zpt.write(data)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
    raise TypeError("'text' parameter must be unicode")
TypeError: 'text' parameter must be unicode

  Ran 808 tests with 3 failures and 18 errors in 7.686 seconds.
Running Products.CMFCore.testing.FunctionalZCMLLayer tests:
  Set up Products.CMFCore.testing.FunctionalZCMLLayer in 1.456 seconds.
  Ran 52 tests with 0 failures and 0 errors in 0.436 seconds.
Running Products.CMFCalendar.testing.FunctionalLayer tests:
  Set up Products.CMFCalendar.testing.FunctionalLayer in 0.865 seconds.


Failure in test test_firstDayRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Testing/ZopeTestCase/profiler.py", line 100, in __call__
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/tests/test_Calendar.py", line 570, in test_firstDayRendering
    self.assertEqual([events[e] for e in range(1, 8)], data)
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 333, in failUnlessEqual
    raise self.failureException, \
AssertionError: [{'eventslist': [], 'day': 1, 'event': 0}, {'eventslist': [], 'day': 2, 'event': 0}, {'eventslist': [], 'day': 3, 'event': 0}, {'eventslist': [], 'day': 4, 'event': 0}, {'eventslist': [], 'day': 5, 'event': 0}, {'eventslist': [], 'day': 6, 'event': 0}, {'eventslist': [], 'day': 7, 'event': 0}] != [{'eventslist': [{'start': '00:00:00', 'end': '00:10:00', 'title': 'today'}], 'day': 1, 'event': 1}, {'eventslist': [], 'day': 2, 'event': 0}, {'eventslist': [], 'day': 3, 'event': 0}, {'eventslist': [], 'day': 4, 'event': 0}, {'eventslist': [], 'day': 5, 'event': 0}, {'eventslist': [], 'day': 6, 'event': 0}, {'eventslist': [], 'day': 7, 'event': 0}]



Failure in test test_getBeginAndEndTimes (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Testing/ZopeTestCase/profiler.py", line 100, in __call__
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/tests/test_Calendar.py", line 406, in test_getBeginAndEndTimes
    ( DateTime('2001/12/1 12:00:00AM'),
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 333, in failUnlessEqual
    raise self.failureException, \
AssertionError: (DateTime('2001/12/01'), DateTime('2001/12/01 23:59:59 GMT+0')) != (DateTime('2001/12/01'), DateTime('2001/12/01 23:59:59 GMT+1'))



Failure in test test_lastDayRendering (CMFCalendar.tests.test_Calendar.CalendarRequestTests)
Traceback (most recent call last):
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Testing/ZopeTestCase/profiler.py", line 100, in __call__
    testMethod()
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/tests/test_Calendar.py", line 542, in test_lastDayRendering
    self.assertEqual([events[e] for e in range(25, 32)], data)
  File "/usr/local/python2.4/lib/python2.4/unittest.py", line 333, in failUnlessEqual
    raise self.failureException, \
AssertionError: [{'eventslist': [{'start': None, 'end': None, 'title': 'tomorrow'}], 'day': 25, 'event': 1}, {'eventslist': [{'start': None, 'end': None, 'title': 'tomorrow'}], 'day': 26, 'event': 1}, {'eventslist': [{'start': None, 'end': None, 'title': 'tomorrow'}], 'day': 27, 'event': 1}, {'eventslist': [{'start': None, 'end': None, 'title': 'tomorrow'}], 'day': 28, 'event': 1}, {'eventslist': [{'start': None, 'end': None, 'title': 'tomorrow'}], 'day': 29, 'event': 1}, {'eventslist': [{'start': None, 'end': None, 'title': 'tomorrow'}], 'day': 30, 'event': 1}, {'eventslist': [{'start': '23:50:00', 'end': '23:59:59', 'title': 'today'}, {'start': None, 'end': '00:10:00', 'title': 'tomorrow'}], 'day': 31, 'event': 1}] != [{'eventslist': [], 'day': 25, 'event': 0}, {'eventslist': [], 'day': 26, 'event': 0}, {'eventslist': [], 'day': 27, 'event': 0}, {'eventslist': [], 'day': 28, 'event': 0}, {'eventslist': [], 'day': 29, 'event': 0}, {'eventslist': [], 'day': 30, 'event': 0}, !
 {'eventslist': [{'start': '23:50:00', 'end': '23:59:59', 'title': 'today'}], 'day': 31, 'event': 1}]

  Ran 21 tests with 3 failures and 0 errors in 4.213 seconds.
Running Products.CMFCore.testing.EventZCMLLayer tests:
  Tear down Products.CMFCalendar.testing.FunctionalLayer in 0.281 seconds.
  Tear down Products.CMFCore.testing.FunctionalZCMLLayer in 0.002 seconds.
  Set up Products.CMFCore.testing.EventZCMLLayer in 0.168 seconds.
  Ran 45 tests with 0 failures and 0 errors in 0.341 seconds.
Running Products.CMFCore.testing.ExportImportZCMLLayer tests:
  Tear down Products.CMFCore.testing.EventZCMLLayer in 0.001 seconds.
  Set up Products.CMFCore.testing.ExportImportZCMLLayer in 0.139 seconds.
  Ran 97 tests with 0 failures and 0 errors in 1.497 seconds.
Running Products.CMFCore.testing.TraversingZCMLLayer tests:
  Tear down Products.CMFCore.testing.ExportImportZCMLLayer in 0.001 seconds.
  Set up Products.CMFCore.testing.TraversingZCMLLayer in 0.074 seconds.
  Ran 49 tests with 0 failures and 0 errors in 0.487 seconds.
Running Products.CMFDefault.testing.FunctionalLayer tests:
  Tear down Products.CMFCore.testing.TraversingZCMLLayer in 0.001 seconds.
  Set up Products.CMFCore.testing.FunctionalZCMLLayer in 1.367 seconds.
  Set up Products.CMFDefault.testing.FunctionalLayer in 0.938 seconds.


Failure in test /home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt
Failed doctest test for RegistrationTool.txt
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt", line 0

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt", line 103, in RegistrationTool.txt
Failed example:
    s.addResource(dir, 'password_email_template.pt')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest RegistrationTool.txt[42]>", line 1, in ?
        s.addResource(dir, 'password_email_template.pt')
      File "<doctest RegistrationTool.txt[21]>", line 9, in addResource
        r.write(f.read())
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
        raise TypeError("'text' parameter must be unicode")
    TypeError: 'text' parameter must be unicode
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt", line 105, in RegistrationTool.txt
Failed example:
    s.addResource(dir, 'registered_email_template.pt')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest RegistrationTool.txt[44]>", line 1, in ?
        s.addResource(dir, 'registered_email_template.pt')
      File "<doctest RegistrationTool.txt[21]>", line 9, in addResource
        r.write(f.read())
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
        raise TypeError("'text' parameter must be unicode")
    TypeError: 'text' parameter must be unicode
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt", line 110, in RegistrationTool.txt
Failed example:
    print s.password_email()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest RegistrationTool.txt[46]>", line 1, in ?
        print s.password_email()
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
        return self._bindAndExec(args, kw, None)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
        return self._exec(bound_data, args, kw)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PythonScripts/PythonScript.py", line 326, in _exec
        result = f(*args, **kw)
      File "Script (Python)", line 22, in password_email
    AttributeError: password_email_template
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt", line 125, in RegistrationTool.txt
Failed example:
    print s.password_email()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest RegistrationTool.txt[48]>", line 1, in ?
        print s.password_email()
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
        return self._bindAndExec(args, kw, None)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
        return self._exec(bound_data, args, kw)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PythonScripts/PythonScript.py", line 326, in _exec
        result = f(*args, **kw)
      File "Script (Python)", line 22, in password_email
    AttributeError: password_email_template
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt", line 142, in RegistrationTool.txt
Failed example:
    print s.registered_email()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest RegistrationTool.txt[50]>", line 1, in ?
        print s.registered_email()
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
        return self._bindAndExec(args, kw, None)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
        return self._exec(bound_data, args, kw)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PythonScripts/PythonScript.py", line 326, in _exec
        result = f(*args, **kw)
      File "Script (Python)", line 35, in registered_email
    AttributeError: registered_email_template
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/tests/RegistrationTool.txt", line 173, in RegistrationTool.txt
Failed example:
    print s.registered_email()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest RegistrationTool.txt[52]>", line 1, in ?
        print s.registered_email()
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
        return self._bindAndExec(args, kw, None)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
        return self._exec(bound_data, args, kw)
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PythonScripts/PythonScript.py", line 326, in _exec
        result = f(*args, **kw)
      File "Script (Python)", line 35, in registered_email
    AttributeError: registered_email_template

  Ran 45 tests with 1 failures and 0 errors in 11.005 seconds.
Running Products.DCWorkflow.testing.ExportImportZCMLLayer tests:
  Tear down Products.CMFDefault.testing.FunctionalLayer in 0.070 seconds.
  Tear down Products.CMFCore.testing.FunctionalZCMLLayer in 0.002 seconds.
  Set up Products.DCWorkflow.testing.ExportImportZCMLLayer in 1.228 seconds.
  Ran 35 tests with 0 failures and 0 errors in 2.008 seconds.
Running Products.GenericSetup.testing.ExportImportZCMLLayer tests:
  Tear down Products.DCWorkflow.testing.ExportImportZCMLLayer in 0.003 seconds.
  Set up Products.GenericSetup.testing.ExportImportZCMLLayer in 0.138 seconds.


Error in test test_body_get (GenericSetup.PageTemplates.tests.test_exportimport.ZopePageTemplateBodyAdapterTests)
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-zope211-cmf21/Products/GenericSetup/testing.py", line 82, in test_body_get
    self._populate(self._obj)
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/GenericSetup/PageTemplates/tests/test_exportimport.py", line 42, in _populate
    obj.write(_PAGETEMPLATE_BODY)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
    raise TypeError("'text' parameter must be unicode")
TypeError: 'text' parameter must be unicode



Error in test test_body_set (GenericSetup.PageTemplates.tests.test_exportimport.ZopePageTemplateBodyAdapterTests)
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-zope211-cmf21/Products/GenericSetup/testing.py", line 90, in test_body_set
    adapted.body = self._BODY
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/GenericSetup/PageTemplates/exportimport.py", line 41, in _importBody
    self.context.write(body)
  File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 290, in write
    raise TypeError("'text' parameter must be unicode")
TypeError: 'text' parameter must be unicode

  Ran 198 tests with 0 failures and 2 errors in 1.798 seconds.
Tearing down left over layers:
  Tear down Products.GenericSetup.testing.ExportImportZCMLLayer in 0.001 seconds.
Total: 1350 tests, 7 failures, 20 errors

FAILED (failures=7, errors=20)


More information about the cmf-tests mailing list