[cmf-tests] FAILED (failures=3) : CMF-2.1 Zope-2.11 Python-2.4.4 : Linux

CMF Tests cmf-tests at epy.co.at
Mon Oct 13 21:34:51 EDT 2008


CMF Tests : FAILED (failures=3)
CMF-2.1 Zope-2.11 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:
  Ran 487 tests with 0 failures and 0 errors in 2.652 seconds.
Running Testing.ZopeTestCase.layer.ZopeLite tests:
  Set up Testing.ZopeTestCase.layer.ZopeLite in 0.685 seconds.
  Ran 361 tests with 0 failures and 0 errors in 7.319 seconds.
Running Products.CMFCore.testing.FunctionalZCMLLayer tests:
  Set up Products.CMFCore.testing.FunctionalZCMLLayer in 2.399 seconds.
  Ran 53 tests with 0 failures and 0 errors in 0.408 seconds.
Running Products.CMFCalendar.testing.FunctionalLayer tests:
  Set up Products.CMFCalendar.testing.FunctionalLayer in 0.833 seconds.


Failure in test /home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt
Failed doctest test for event.txt
  File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 0

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 16, in event.txt
Failed example:
    from Products.Five.testbrowser import Browser
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[7]>", line 1, in ?
        from Products.Five.testbrowser import Browser
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/Five/testbrowser.py", line 23, in ?
        import mechanize
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/__init__.py", line 1, in ?
        from _mechanize import __version__
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_mechanize.py", line 14, in ?
        from _useragent import UserAgent
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_useragent.py", line 18, in ?
        import _urllib2
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_urllib2.py", line 27
         from urllib2 import \
     SyntaxError: trailing comma not allowed without surrounding parentheses
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 17, in event.txt
Failed example:
    browser = Browser()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[8]>", line 1, in ?
        browser = Browser()
    NameError: name 'Browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 18, in event.txt
Failed example:
    browser.handleErrors = False
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[9]>", line 1, in ?
        browser.handleErrors = False
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 19, in event.txt
Failed example:
    browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[10]>", line 1, in ?
        browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 23, in event.txt
Failed example:
    browser.open('http://localhost/site/myEvent/@@edit.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[11]>", line 1, in ?
        browser.open('http://localhost/site/myEvent/@@edit.html')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 24, in event.txt
Failed example:
    browser.getControl('[[cmf_calendar][From]]').value = 'a'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[12]>", line 1, in ?
        browser.getControl('[[cmf_calendar][From]]').value = 'a'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 25, in event.txt
Failed example:
    browser.getControl('[[cmf_default][Change]]').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[13]>", line 1, in ?
        browser.getControl('[[cmf_default][Change]]').click()
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 26, in event.txt
Failed example:
    '[[zope][There were errors]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[14]>", line 1, in ?
        '[[zope][There were errors]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 28, in event.txt
Failed example:
    '[[zope][Invalid datetime data]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[15]>", line 1, in ?
        '[[zope][Invalid datetime data]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 33, in event.txt
Failed example:
    browser.getControl('[[cmf_calendar][From]]').value = '2006 11 6  12:00:00 '
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[16]>", line 1, in ?
        browser.getControl('[[cmf_calendar][From]]').value = '2006 11 6  12:00:00 '
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 34, in event.txt
Failed example:
    browser.getControl('[[cmf_default][Change]]').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[17]>", line 1, in ?
        browser.getControl('[[cmf_default][Change]]').click()
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 35, in event.txt
Failed example:
    '[[zope][There were errors]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[18]>", line 1, in ?
        '[[zope][There were errors]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 40, in event.txt
Failed example:
    browser.open('http://localhost/site/myEvent/@@view.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[19]>", line 1, in ?
        browser.open('http://localhost/site/myEvent/@@view.html')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFCalendar/browser/event.txt", line 41, in event.txt
Failed example:
    '2006 11 6  12:00:00 ' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest event.txt[20]>", line 1, in ?
        '2006 11 6  12:00:00 ' in browser.contents
    NameError: name 'browser' is not defined

  Ran 23 tests with 1 failures and 0 errors in 2.989 seconds.
Running Products.CMFCore.testing.EventZCMLLayer tests:
  Tear down Products.CMFCalendar.testing.FunctionalLayer in 0.069 seconds.
  Tear down Products.CMFCore.testing.FunctionalZCMLLayer in 0.004 seconds.
  Set up Products.CMFCore.testing.EventZCMLLayer in 0.003 seconds.
  Ran 26 tests with 0 failures and 0 errors in 2.200 seconds.
Running Products.CMFCore.testing.ExportImportZCMLLayer tests:
  Tear down Products.CMFCore.testing.EventZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.ExportImportZCMLLayer in 0.004 seconds.
  Ran 111 tests with 0 failures and 0 errors in 18.632 seconds.
Running Products.CMFCore.testing.TraversingEventZCMLLayer tests:
  Tear down Products.CMFCore.testing.ExportImportZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.TraversingEventZCMLLayer in 0.009 seconds.
  Ran 16 tests with 0 failures and 0 errors in 1.821 seconds.
Running Products.CMFCore.testing.TraversingZCMLLayer tests:
  Tear down Products.CMFCore.testing.TraversingEventZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.TraversingZCMLLayer in 0.004 seconds.
  Ran 69 tests with 0 failures and 0 errors in 6.765 seconds.
Running Products.CMFDefault.testing.FunctionalLayer tests:
  Tear down Products.CMFCore.testing.TraversingZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.FunctionalZCMLLayer in 0.809 seconds.
  Set up Products.CMFDefault.testing.FunctionalLayer in 0.772 seconds.


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

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 15, in metadata.txt
Failed example:
    from Products.Five.testbrowser import Browser
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[5]>", line 1, in ?
        from Products.Five.testbrowser import Browser
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/Five/testbrowser.py", line 23, in ?
        import mechanize
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/__init__.py", line 1, in ?
        from _mechanize import __version__
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_mechanize.py", line 14, in ?
        from _useragent import UserAgent
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_useragent.py", line 18, in ?
        import _urllib2
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_urllib2.py", line 27
         from urllib2 import \
     SyntaxError: trailing comma not allowed without surrounding parentheses
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 16, in metadata.txt
Failed example:
    browser = Browser()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[6]>", line 1, in ?
        browser = Browser()
    NameError: name 'Browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 17, in metadata.txt
Failed example:
    browser.handleErrors = False
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[7]>", line 1, in ?
        browser.handleErrors = False
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 18, in metadata.txt
Failed example:
    browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[8]>", line 1, in ?
        browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 22, in metadata.txt
Failed example:
    browser.open('http://localhost/site/myContent/@@properties.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[9]>", line 1, in ?
        browser.open('http://localhost/site/myContent/@@properties.html')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 23, in metadata.txt
Failed example:
    '[[cmf_default][Properties]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[10]>", line 1, in ?
        '[[cmf_default][Properties]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 25, in metadata.txt
Failed example:
    browser.getControl(name='form.allow_discussion').value = ('off',)
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[11]>", line 1, in ?
        browser.getControl(name='form.allow_discussion').value = ('off',)
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 26, in metadata.txt
Failed example:
    browser.getControl(name='form.title').value = 'CONTENT TITLE'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[12]>", line 1, in ?
        browser.getControl(name='form.title').value = 'CONTENT TITLE'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 27, in metadata.txt
Failed example:
    browser.getControl(name='form.description').value = 'CONTENT DESCRIPTION.'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[13]>", line 1, in ?
        browser.getControl(name='form.description').value = 'CONTENT DESCRIPTION.'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 28, in metadata.txt
Failed example:
    browser.getControl(name='form.subject').value = 'spam\neggs'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[14]>", line 1, in ?
        browser.getControl(name='form.subject').value = 'spam\neggs'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 29, in metadata.txt
Failed example:
    browser.getControl(name='form.contributors').value = 'foo\nbar\nbaz'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[15]>", line 1, in ?
        browser.getControl(name='form.contributors').value = 'foo\nbar\nbaz'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 30, in metadata.txt
Failed example:
    browser.getControl(name='form.effective').value = '2006 11 11  12:00:00 '
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[16]>", line 1, in ?
        browser.getControl(name='form.effective').value = '2006 11 11  12:00:00 '
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 31, in metadata.txt
Failed example:
    browser.getControl(name='form.expires').value = '2007 11 11  12:00:00 '
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[17]>", line 1, in ?
        browser.getControl(name='form.expires').value = '2007 11 11  12:00:00 '
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 32, in metadata.txt
Failed example:
    browser.getControl(name='form.format').value = 'text/html'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[18]>", line 1, in ?
        browser.getControl(name='form.format').value = 'text/html'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 33, in metadata.txt
Failed example:
    browser.getControl(name='form.language').value = 'test'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[19]>", line 1, in ?
        browser.getControl(name='form.language').value = 'test'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 34, in metadata.txt
Failed example:
    browser.getControl(name='form.rights').value = 'CONTENT RIGHTS'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[20]>", line 1, in ?
        browser.getControl(name='form.rights').value = 'CONTENT RIGHTS'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 35, in metadata.txt
Failed example:
    browser.getControl('[[cmf_default][Change]]').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[21]>", line 1, in ?
        browser.getControl('[[cmf_default][Change]]').click()
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/metadata.txt", line 36, in metadata.txt
Failed example:
    '[[cmf_default][[[cmf_default][Document]] changed.]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest metadata.txt[22]>", line 1, in ?
        '[[cmf_default][[[cmf_default][Document]] changed.]]' in browser.contents
    NameError: name 'browser' is not defined



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

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 16, in document.txt
Failed example:
    from Products.Five.testbrowser import Browser
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[6]>", line 1, in ?
        from Products.Five.testbrowser import Browser
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/Products/Five/testbrowser.py", line 23, in ?
        import mechanize
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/__init__.py", line 1, in ?
        from _mechanize import __version__
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_mechanize.py", line 14, in ?
        from _useragent import UserAgent
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_useragent.py", line 18, in ?
        import _urllib2
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/mechanize/_urllib2.py", line 27
         from urllib2 import \
     SyntaxError: trailing comma not allowed without surrounding parentheses
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 17, in document.txt
Failed example:
    browser = Browser()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[7]>", line 1, in ?
        browser = Browser()
    NameError: name 'Browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 18, in document.txt
Failed example:
    browser.handleErrors = False
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[8]>", line 1, in ?
        browser.handleErrors = False
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 19, in document.txt
Failed example:
    browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[9]>", line 1, in ?
        browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 23, in document.txt
Failed example:
    browser.open('http://localhost/site/myDocument/@@edit.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[10]>", line 1, in ?
        browser.open('http://localhost/site/myDocument/@@edit.html')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 24, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Body]]').value = '<script>'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[11]>", line 1, in ?
        browser.getControl('[[cmf_default][Body]]').value = '<script>'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 25, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Change]]').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[12]>", line 1, in ?
        browser.getControl('[[cmf_default][Change]]').click()
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 26, in document.txt
Failed example:
    '[[zope][There were errors]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[13]>", line 1, in ?
        '[[zope][There were errors]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 28, in document.txt
Failed example:
    '[[cmf_default][Dynamic tag \'script\' not ' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[14]>", line 1, in ?
        '[[cmf_default][Dynamic tag \'script\' not ' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 33, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Body]]').value = 'spam'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[15]>", line 1, in ?
        browser.getControl('[[cmf_default][Body]]').value = 'spam'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 34, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Change]]').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[16]>", line 1, in ?
        browser.getControl('[[cmf_default][Change]]').click()
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 35, in document.txt
Failed example:
    '[[zope][There were errors]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[17]>", line 1, in ?
        '[[zope][There were errors]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 40, in document.txt
Failed example:
    browser.open('http://localhost/site/myDocument/@@view.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[18]>", line 1, in ?
        browser.open('http://localhost/site/myDocument/@@view.html')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 41, in document.txt
Failed example:
    'spam' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[19]>", line 1, in ?
        'spam' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 46, in document.txt
Failed example:
    browser.open('http://localhost/site/myDocument/@@edit.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[20]>", line 1, in ?
        browser.open('http://localhost/site/myDocument/@@edit.html')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 50, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Body]]').value = 'spam and eggs'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[22]>", line 1, in ?
        browser.getControl('[[cmf_default][Body]]').value = 'spam and eggs'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 51, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Change]]').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[23]>", line 1, in ?
        browser.getControl('[[cmf_default][Change]]').click()
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 52, in document.txt
Failed example:
    '[[zope][There were errors]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[24]>", line 1, in ?
        '[[zope][There were errors]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 54, in document.txt
Failed example:
    '[[cmf_default][Intervening changes from ' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[25]>", line 1, in ?
        '[[cmf_default][Intervening changes from ' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 59, in document.txt
Failed example:
    browser.open('http://localhost/site/myDocument/@@edit.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[26]>", line 1, in ?
        browser.open('http://localhost/site/myDocument/@@edit.html')
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 65, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Body]]').value = 'spam and eggs'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[30]>", line 1, in ?
        browser.getControl('[[cmf_default][Body]]').value = 'spam and eggs'
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 66, in document.txt
Failed example:
    browser.getControl('[[cmf_default][Change]]').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[31]>", line 1, in ?
        browser.getControl('[[cmf_default][Change]]').click()
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 67, in document.txt
Failed example:
    '[[zope][There were errors]]' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[32]>", line 1, in ?
        '[[zope][There were errors]]' in browser.contents
    NameError: name 'browser' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope211-cmf21/Products/CMFDefault/browser/document.txt", line 69, in document.txt
Failed example:
    '[[cmf_default][This resource is locked ' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope211/lib/python/zope/testing/doctest.py", line 1356, in __run
        compileflags, 1) in test.globs
      File "<doctest document.txt[33]>", line 1, in ?
        '[[cmf_default][This resource is locked ' in browser.contents
    NameError: name 'browser' is not defined

  Ran 50 tests with 2 failures and 0 errors in 8.212 seconds.
Running Products.CMFUid.testing.UidEventZCMLLayer tests:
  Tear down Products.CMFDefault.testing.FunctionalLayer in 0.086 seconds.
  Tear down Products.CMFCore.testing.FunctionalZCMLLayer in 0.003 seconds.
  Set up Products.CMFUid.testing.UidEventZCMLLayer in 0.003 seconds.
  Ran 12 tests with 0 failures and 0 errors in 1.309 seconds.
Running Products.DCWorkflow.testing.ExportImportZCMLLayer tests:
  Tear down Products.CMFUid.testing.UidEventZCMLLayer in 0.000 seconds.
  Set up Products.DCWorkflow.testing.ExportImportZCMLLayer in 0.778 seconds.
  Ran 37 tests with 0 failures and 0 errors in 2.776 seconds.
Running Products.GenericSetup.testing.ExportImportZCMLLayer tests:
  Tear down Products.DCWorkflow.testing.ExportImportZCMLLayer in 0.001 seconds.
  Set up Products.GenericSetup.testing.ExportImportZCMLLayer in 0.211 seconds.
  Ran 201 tests with 0 failures and 0 errors in 1.909 seconds.
Tearing down left over layers:
  Tear down Products.GenericSetup.testing.ExportImportZCMLLayer in 0.001 seconds.
  Tear down Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds.
Total: 1446 tests, 3 failures, 0 errors in 1 minutes 7.640 seconds.

FAILED (failures=3)


More information about the cmf-tests mailing list