[Testbot] Plone 5.0 - Python 2.7 - Build # 3459 - Still Failing!

jenkins at plone.org jenkins at plone.org
Wed Dec 2 14:34:41 UTC 2015


Plone 5.0 - Python 2.7 - Build # 3459 - Still Failing:

Check console output at http://jenkins.plone.org/job/plone-5.0-python-2.7/3459/ to view the results.

Changes:

[Jens W. Klein] removed Products.TinyMCE since there is no source information - and its







Test Results:

13 tests failed.
FAILED:  plone.app.testing.helpers.rst

Error Message:
Failed doctest test for helpers.rst

Stack Trace:
Failed doctest test for helpers.rst
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 114, in helpers.rst
Failed example:
    runner.setup_layer(options, HELPER_DEMOS_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[11]>", line 1, in <module>
        runner.setup_layer(options, HELPER_DEMOS_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 126, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 129, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[15]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 136, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal['portal_quickinstaller'].isProductInstalled('plone.resource')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[16]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 146, in helpers.rst
Failed example:
    HELPER_DEMOS_INTEGRATION_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[21]>", line 1, in <module>
        HELPER_DEMOS_INTEGRATION_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 268, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 156, in helpers.rst
Failed example:
    portal = HELPER_DEMOS_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[25]>", line 1, in <module>
        portal = HELPER_DEMOS_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 158, in helpers.rst
Failed example:
    getSecurityManager().getUser().getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[26]>", line 1, in <module>
        getSecurityManager().getUser().getRolesInContext(portal)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 161, in helpers.rst
Failed example:
    getSecurityManager().getUser().getUserName() == TEST_USER_NAME
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 163, in helpers.rst
Failed example:
    getSecurityManager().getUser().getId() == TEST_USER_ID
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 166, in helpers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[30]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 167, in helpers.rst
Failed example:
    repr(getSecurityManager()) != sm_repr
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 169, in helpers.rst
Failed example:
    getSecurityManager().getUser().getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[32]>", line 1, in <module>
        getSecurityManager().getUser().getRolesInContext(portal)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 176, in helpers.rst
Failed example:
    helpers.login(portal, TEST_USER_NAME)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[35]>", line 1, in <module>
        helpers.login(portal, TEST_USER_NAME)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 177, in helpers.rst
Failed example:
    getSecurityManager().getUser().getUserName() == TEST_USER_NAME
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 181, in helpers.rst
Failed example:
    portal._setObject('folder1', Folder('folder1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[38]>", line 1, in <module>
        portal._setObject('folder1', Folder('folder1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 186, in helpers.rst
Failed example:
    HELPER_DEMOS_INTEGRATION_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[39]>", line 1, in <module>
        HELPER_DEMOS_INTEGRATION_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 272, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 195, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 198, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
        print portal['portal_quickinstaller'].isProductInstalled('plone.resource')
        'folder1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[45]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 210, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [l for l in setupLayers if l not in (HELPER_DEMOS_INTEGRATION_TESTING, HELPER_DEMOS_FIXTURE,)], setupLayers)
Expected:
    Tear down plone.app.testing.layers.HelperDemos:Integration in ... seconds.
    Tear down HelperDemos in ... seconds.
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 217, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
        print portal['portal_quickinstaller'].isProductInstalled('plone.resource')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[48]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 225, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 317, in helpers.rst
Failed example:
    runner.setup_layer(options, MY_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[57]>", line 1, in <module>
        runner.setup_layer(options, MY_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 326, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 329, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[59]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 333, in helpers.rst
Failed example:
    someGlobal['test']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[60]>", line 1, in <module>
        someGlobal['test']
    KeyError: 'test'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 341, in helpers.rst
Failed example:
    'plone.app.testing:dummy1' in _profile_registry.listProfiles()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 345, in helpers.rst
Failed example:
    'import1' in _import_step_registry.listSteps()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 349, in helpers.rst
Failed example:
    'export1' in _export_step_registry.listSteps()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 353, in helpers.rst
Failed example:
    'dummy_plugin1' in PluggableAuthService.MultiPlugins
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 360, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [l for l in setupLayers if l not in (MY_INTEGRATION_TESTING, MY_FIXTURE)], setupLayers)
Expected:
    Tear down plone.app.testing.layers.MyLayer:Integration in ... seconds.
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 366, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[74]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 373, in helpers.rst
Failed example:
    len(_profile_registry.listProfiles()) == numProfiles - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 378, in helpers.rst
Failed example:
    len(_import_step_registry.listSteps()) == numImportSteps - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 383, in helpers.rst
Failed example:
    len(_export_step_registry.listSteps()) == numExportSteps - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.rst", line 394, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.


  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.testing.layers.rst

Error Message:
Failed doctest test for layers.rst

Stack Trace:
Failed doctest test for layers.rst
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 46, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_FIXTURE, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[4]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_FIXTURE, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 60, in layers.rst
Failed example:
    with z2.zopeApp() as app:
        print app['acl_users'].getUser(SITE_OWNER_NAME)
        print app['acl_users'].getUser(SITE_OWNER_NAME).getRolesInContext(app)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[7]>", line 3, in <module>
        print app['acl_users'].getUser(SITE_OWNER_NAME).getRolesInContext(app)
    AttributeError: 'NoneType' object has no attribute 'getRolesInContext'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 69, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal['portal_registry']['plone.app.theming.interfaces.IThemeSettings.rules']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[9]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 83, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal['acl_users'].getUser(TEST_USER_NAME).getId()
        print portal['acl_users'].getUser(TEST_USER_NAME).getUserName()
        print portal['acl_users'].getUser(TEST_USER_NAME).getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[11]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 93, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal['portal_workflow'].getDefaultChain()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[12]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 99, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.004 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 120, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[18]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 131, in layers.rst
Failed example:
    layers.PLONE_INTEGRATION_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[22]>", line 1, in <module>
        layers.PLONE_INTEGRATION_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 268, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 135, in layers.rst
Failed example:
    layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[23]>", line 1, in <module>
        layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 141, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 147, in layers.rst
Failed example:
    getSecurityManager().getUser()
Expected:
    <PloneUser 'test-user'>
Got:
    <SpecialUser 'Anonymous User'>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 154, in layers.rst
Failed example:
    portal = layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[29]>", line 1, in <module>
        portal = layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 155, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[30]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 157, in layers.rst
Failed example:
    portal._setObject('d1', SimpleItem('d1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[32]>", line 1, in <module>
        portal._setObject('d1', SimpleItem('d1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 159, in layers.rst
Failed example:
    'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[33]>", line 1, in <module>
        'd1' in portal.objectIds()
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 164, in layers.rst
Failed example:
    layers.PLONE_INTEGRATION_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[34]>", line 1, in <module>
        layers.PLONE_INTEGRATION_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 272, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 171, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[38]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 182, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 187, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:Integration in ... seconds.
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 209, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[46]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 220, in layers.rst
Failed example:
    layers.PLONE_FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[50]>", line 1, in <module>
        layers.PLONE_FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 266, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 222, in layers.rst
Failed example:
    layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[51]>", line 1, in <module>
        layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 226, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 230, in layers.rst
Failed example:
    getSecurityManager().getUser()
Expected:
    <PloneUser 'test-user'>
Got:
    <SpecialUser 'Anonymous User'>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 236, in layers.rst
Failed example:
    portal = layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[56]>", line 1, in <module>
        portal = layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 237, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[57]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 238, in layers.rst
Failed example:
    portal._setObject('d1', SimpleItem('d1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[58]>", line 1, in <module>
        portal._setObject('d1', SimpleItem('d1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 241, in layers.rst
Failed example:
    'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[60]>", line 1, in <module>
        'd1' in portal.objectIds()
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 246, in layers.rst
Failed example:
    layers.PLONE_FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[61]>", line 1, in <module>
        layers.PLONE_FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 272, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 253, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[65]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 262, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 267, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:Functional in ... seconds.
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 288, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_ZSERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[73]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_ZSERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 299, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 304, in layers.rst
Failed example:
    port == int(os.environ.get('ZSERVER_PORT', 55001))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 314, in layers.rst
Failed example:
    layers.PLONE_ZSERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[83]>", line 1, in <module>
        layers.PLONE_ZSERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 266, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 322, in layers.rst
Failed example:
    portal = layers.PLONE_ZSERVER['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[84]>", line 1, in <module>
        portal = layers.PLONE_ZSERVER['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 323, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[85]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 324, in layers.rst
Failed example:
    portal.title = 'Fancy Portal'
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[86]>", line 1, in <module>
        portal.title = 'Fancy Portal'
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 333, in layers.rst
Failed example:
    portal_url = portal.absolute_url()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[88]>", line 1, in <module>
        portal_url = portal.absolute_url()
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 334, in layers.rst
Failed example:
    portal_url.split(':')[:-1]
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[89]>", line 1, in <module>
        portal_url.split(':')[:-1]
    NameError: name 'portal_url' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 338, in layers.rst
Failed example:
    conn = urllib2.urlopen(portal_url + '/Title', timeout=10)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[91]>", line 1, in <module>
        conn = urllib2.urlopen(portal_url + '/Title', timeout=10)
    NameError: name 'portal_url' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 339, in layers.rst
Failed example:
    responseBody = conn.read()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[92]>", line 1, in <module>
        responseBody = conn.read()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 340, in layers.rst
Failed example:
    "Fancy Portal" in responseBody
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[93]>", line 1, in <module>
        "Fancy Portal" in responseBody
    NameError: name 'responseBody' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 342, in layers.rst
Failed example:
    conn.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[94]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 346, in layers.rst
Failed example:
    layers.PLONE_ZSERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[95]>", line 1, in <module>
        layers.PLONE_ZSERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 272, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 361, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print 'folder1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[103]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 367, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:ZServer in ... seconds.
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.ZServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 374, in layers.rst
Failed example:
    conn = urllib2.urlopen(portal_url + '/folder1', timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    URLError: <urlopen error [Errno ...] Connection refused>
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[105]>", line 1, in <module>
        conn = urllib2.urlopen(portal_url + '/folder1', timeout=5)
    NameError: name 'portal_url' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 394, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_FTP_SERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[110]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_FTP_SERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 405, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 410, in layers.rst
Failed example:
    port == int(os.environ.get('FTPSERVER_PORT', 55002))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 420, in layers.rst
Failed example:
    layers.PLONE_FTP_SERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[120]>", line 1, in <module>
        layers.PLONE_FTP_SERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 266, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 428, in layers.rst
Failed example:
    portal = layers.PLONE_FTP_SERVER['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[121]>", line 1, in <module>
        portal = layers.PLONE_FTP_SERVER['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 429, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[122]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 431, in layers.rst
Failed example:
    portal._setObject('folder1', Folder('folder1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[124]>", line 1, in <module>
        portal._setObject('folder1', Folder('folder1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 439, in layers.rst
Failed example:
    folder_path = portal.absolute_url_path() + '/folder1'
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[126]>", line 1, in <module>
        folder_path = portal.absolute_url_path() + '/folder1'
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 443, in layers.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[129]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 553, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 449, in layers.rst
Failed example:
    ftpClient.login(SITE_OWNER_NAME, SITE_OWNER_PASSWORD)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[132]>", line 1, in <module>
        ftpClient.login(SITE_OWNER_NAME, SITE_OWNER_PASSWORD)
      File "/usr/lib/python2.7/ftplib.py", line 392, in login
        resp = self.sendcmd('USER ' + user)
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 452, in layers.rst
Failed example:
    ftpClient.cwd(folder_path)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[133]>", line 1, in <module>
        ftpClient.cwd(folder_path)
    NameError: name 'folder_path' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 455, in layers.rst
Failed example:
    ftpClient.retrlines('LIST')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[134]>", line 1, in <module>
        ftpClient.retrlines('LIST')
      File "/usr/lib/python2.7/ftplib.py", line 436, in retrlines
        resp = self.sendcmd('TYPE A')
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 460, in layers.rst
Failed example:
    ftpClient.quit()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[135]>", line 1, in <module>
        ftpClient.quit()
      File "/usr/lib/python2.7/ftplib.py", line 591, in quit
        resp = self.voidcmd('QUIT')
      File "/usr/lib/python2.7/ftplib.py", line 253, in voidcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 465, in layers.rst
Failed example:
    layers.PLONE_FTP_SERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[136]>", line 1, in <module>
        layers.PLONE_FTP_SERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.py", line 272, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 480, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print 'folder1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[144]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/helpers.py", line 233, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 486, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:FTPServer in ... seconds.
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.FTPServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0b6-py2.7.egg/plone/app/testing/layers.rst", line 493, in layers.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    error: [Errno ...] Connection refused
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[146]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 553, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known


  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.schemaeditor.tests.editing.txt

Error Message:
Failed doctest test for editing.txt

Stack Trace:
Failed doctest test for editing.txt
  File "/home/jenkins/workspace/plone-5.0-python-2.7/src/plone.schemaeditor/plone/schemaeditor/tests/editing.txt", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.0-python-2.7/src/plone.schemaeditor/plone/schemaeditor/tests/editing.txt", line 133, in editing.txt
Failed example:
    IDummySchema['favorite_color'].description.domain
Expected:
    'plone.schemaeditor'
Got:
    'plone'


  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.testing.z2.txt

Error Message:
Failed doctest test for z2.txt

Stack Trace:
Failed doctest test for z2.txt
  File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 0

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 51, in z2.txt
Failed example:
    runner.setup_layer(options, z2.STARTUP, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[10]>", line 1, in <module>
        runner.setup_layer(options, z2.STARTUP, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 61, in z2.txt
Failed example:
    z2.STARTUP['zodbDB'].storage
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[12]>", line 1, in <module>
        z2.STARTUP['zodbDB'].storage
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 86, in z2.txt
Failed example:
    with z2.zopeApp(db=z2.STARTUP['zodbDB']) as app:
        print app.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[16]>", line 1, in <module>
        with z2.zopeApp(db=z2.STARTUP['zodbDB']) as app:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 251, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/Zope2/__init__.py", line 52, in app
        return bobo_application(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/App/ZApplication.py", line 75, in __call__
        return connection.root()[aname]
      File "/home/jenkins/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 366, in root
        return RootConvenience(self.get(z64))
      File "/home/jenkins/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 248, in get
        p, serial = self._storage.load(oid, '')
    AttributeError: 'NoneType' object has no attribute 'load'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 94, in z2.txt
Failed example:
    conn = z2.STARTUP['zodbDB'].open()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[17]>", line 1, in <module>
        conn = z2.STARTUP['zodbDB'].open()
      File "/home/jenkins/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/DB.py", line 744, in open
        self._cache_size_bytes,
      File "/home/jenkins/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 98, in __init__
        storage = db.storage
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 95, in z2.txt
Failed example:
    with z2.zopeApp(connection=conn) as app:
        print app.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[18]>", line 1, in <module>
        with z2.zopeApp(connection=conn) as app:
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 99, in z2.txt
Failed example:
    conn.opened is not None
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[19]>", line 1, in <module>
        conn.opened is not None
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 102, in z2.txt
Failed example:
    conn.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[20]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 148, in z2.txt
Failed example:
    len(list(getSiteManager().registeredAdapters())) > 1 # in fact, > a lot
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 153, in z2.txt
Failed example:
    getVocabularyRegistry()
Expected:
    <....Zope2VocabularyRegistry object at ...>
Got:
    <zope.schema.vocabulary.VocabularyRegistry object at 0x7efc23735c90>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 174, in z2.txt
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 179, in z2.txt
Failed example:
    Zope2._began_startup
Expected:
    0
Got:
    1
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 181, in z2.txt
Failed example:
    Zope2.DB is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 183, in z2.txt
Failed example:
    Zope2.bobo_application is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 221, in z2.txt
Failed example:
    runner.setup_layer(options, z2.INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[38]>", line 1, in <module>
        runner.setup_layer(options, z2.INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 292, in z2.txt
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.IntegrationTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 324, in z2.txt
Failed example:
    runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[65]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 334, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[67]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 339, in z2.txt
Failed example:
    app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[68]>", line 1, in <module>
        app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 349, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[73]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 862, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 358, in z2.txt
Failed example:
    with z2.zopeApp() as app:
        print app.objectIds()
Expected:
    ['acl_users', 'Control_Panel']
Got:
    ['acl_users', 'Control_Panel', 'folder1']
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 364, in z2.txt
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FunctionalTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 384, in z2.txt
Failed example:
    runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[81]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 392, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[83]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 396, in z2.txt
Failed example:
    app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[84]>", line 1, in <module>
        app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 406, in z2.txt
Failed example:
    app.manage_addFolder('folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[87]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 326, in _setObject
        v = self._checkId(id)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 116, in checkValidId
        'The id "%s" is invalid - it is already in use.' % id)
    BadRequest: The id "folder1" is invalid - it is already in use.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 411, in z2.txt
Failed example:
    browser.open(app.absolute_url() + '/folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[89]>", line 1, in <module>
        browser.open(app.absolute_url() + '/folder1')
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-3.11.1-py2.7.egg/zope/testbrowser/browser.py", line 240, in open
        self.mech_browser.open(url, data)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 203, in open
        return self._mech_open(url, data, timeout=timeout)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 216, in _mech_open
        "can't fetch relative reference: "
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 413, in z2.txt
Failed example:
    'folder1' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[90]>", line 1, in <module>
        'folder1' in browser.contents
    TypeError: argument of type 'NoneType' is not iterable
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 424, in z2.txt
Failed example:
    browser.open(app.absolute_url() + '/folder1?' + qs)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[95]>", line 1, in <module>
        browser.open(app.absolute_url() + '/folder1?' + qs)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-3.11.1-py2.7.egg/zope/testbrowser/browser.py", line 240, in open
        self.mech_browser.open(url, data)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 203, in open
        return self._mech_open(url, data, timeout=timeout)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 216, in _mech_open
        "can't fetch relative reference: "
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 425, in z2.txt
Failed example:
    browser.contents
Expected:
    'boo, bar & baz'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 437, in z2.txt
Failed example:
    browser.open(app.absolute_url() + '/file1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[100]>", line 1, in <module>
        browser.open(app.absolute_url() + '/file1')
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-3.11.1-py2.7.egg/zope/testbrowser/browser.py", line 240, in open
        self.mech_browser.open(url, data)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 203, in open
        return self._mech_open(url, data, timeout=timeout)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 216, in _mech_open
        "can't fetch relative reference: "
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 438, in z2.txt
Failed example:
    'The test browser also works with iterators' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[101]>", line 1, in <module>
        'The test browser also works with iterators' in browser.contents
    TypeError: argument of type 'NoneType' is not iterable
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 446, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[102]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 862, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 455, in z2.txt
Failed example:
    with z2.zopeApp() as app:
        print app.objectIds()
Expected:
    ['acl_users', 'Control_Panel']
Got:
    ['acl_users', 'Control_Panel', 'folder1', 'file1']
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 461, in z2.txt
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FunctionalTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 491, in z2.txt
Failed example:
    runner.setup_layer(options, z2.ZSERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[114]>", line 1, in <module>
        runner.setup_layer(options, z2.ZSERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 501, in z2.txt
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 506, in z2.txt
Failed example:
    port == int(os.environ.get('ZSERVER_PORT', 55001))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 513, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[121]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 514, in z2.txt
Failed example:
    z2.ZSERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[122]>", line 1, in <module>
        z2.ZSERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 522, in z2.txt
Failed example:
    app = z2.ZSERVER['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[123]>", line 1, in <module>
        app = z2.ZSERVER['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 523, in z2.txt
Failed example:
    app.manage_addFolder('folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[124]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 326, in _setObject
        v = self._checkId(id)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 116, in checkValidId
        'The id "%s" is invalid - it is already in use.' % id)
    BadRequest: The id "folder1" is invalid - it is already in use.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 533, in z2.txt
Failed example:
    app_url.split(':')[:-1]
Expected:
    ['http', '//localhost']
Got:
    []
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 537, in z2.txt
Failed example:
    conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[129]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
        return _opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 396, in open
        protocol = req.get_type()
      File "/usr/lib/python2.7/urllib2.py", line 258, in get_type
        raise ValueError, "unknown url type: %s" % self.__original
    ValueError: unknown url type: //folder1
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 538, in z2.txt
Failed example:
    print conn.read()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[130]>", line 1, in <module>
        print conn.read()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 540, in z2.txt
Failed example:
    conn.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[131]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 544, in z2.txt
Failed example:
    z2.ZSERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[132]>", line 1, in <module>
        z2.ZSERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 862, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 545, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[133]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 862, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 554, in z2.txt
Failed example:
    with z2.zopeApp() as app:
        print app.objectIds()
Expected:
    ['acl_users', 'Control_Panel']
Got:
    ['acl_users', 'Control_Panel', 'folder1', 'file1']
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 560, in z2.txt
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.ZServer:Functional in ... seconds.
    Tear down plone.testing.z2.ZServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 566, in z2.txt
Failed example:
    conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    URLError: <urlopen error [Errno ...] Connection refused>
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[139]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
        return _opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 396, in open
        protocol = req.get_type()
      File "/usr/lib/python2.7/urllib2.py", line 258, in get_type
        raise ValueError, "unknown url type: %s" % self.__original
    ValueError: unknown url type: //folder1
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 604, in z2.txt
Failed example:
    runner.setup_layer(options, z2.FTP_SERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[146]>", line 1, in <module>
        runner.setup_layer(options, z2.FTP_SERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 319, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 505, in setUpDatabase
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 614, in z2.txt
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 619, in z2.txt
Failed example:
    port == int(os.environ.get('FTPSERVER_PORT', 55002))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 626, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[153]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 627, in z2.txt
Failed example:
    z2.FTP_SERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[154]>", line 1, in <module>
        z2.FTP_SERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 821, in testSetUp
        self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/zodb.py", line 25, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 632, in z2.txt
Failed example:
    app = z2.FTP_SERVER['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[155]>", line 1, in <module>
        app = z2.FTP_SERVER['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 633, in z2.txt
Failed example:
    app.manage_addFolder('folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[156]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 326, in _setObject
        v = self._checkId(id)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/ObjectManager.py", line 116, in checkValidId
        'The id "%s" is invalid - it is already in use.' % id)
    BadRequest: The id "folder1" is invalid - it is already in use.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 637, in z2.txt
Failed example:
    ignore = app['acl_users'].userFolderAddUser('admin', 'secret', ['Manager'], ())
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[157]>", line 1, in <module>
        ignore = app['acl_users'].userFolderAddUser('admin', 'secret', ['Manager'], ())
      File "<string>", line 5, in userFolderAddUser
      File "/home/jenkins/.buildout/eggs/AccessControl-3.0.11-py2.7-linux-x86_64.egg/AccessControl/requestmethod.py", line 70, in _curried
        return callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.23-py2.7.egg/OFS/userfolder.py", line 65, in userFolderAddUser
        return self._doAddUser(name, password, roles, domains, **kw)
      File "/home/jenkins/.buildout/eggs/AccessControl-3.0.11-py2.7-linux-x86_64.egg/AccessControl/userfolder.py", line 410, in _doAddUser
        self.data[name] = User(name, password, roles, domains)
      File "/home/jenkins/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/persistent/mapping.py", line 63, in __setitem__
        self.__super_setitem(key, v)
      File "/home/jenkins/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 857, in setstate
        raise ConnectionStateError(msg)
    ConnectionStateError: Shouldn't load state for 0x3cd793f55b31fd8d when the connection is closed
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 650, in z2.txt
Failed example:
    ftpClient.connect(host, port, timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[162]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 553, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 653, in z2.txt
Failed example:
    ftpClient.login('admin', 'secret')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[163]>", line 1, in <module>
        ftpClient.login('admin', 'secret')
      File "/usr/lib/python2.7/ftplib.py", line 392, in login
        resp = self.sendcmd('USER ' + user)
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 656, in z2.txt
Failed example:
    ftpClient.cwd(app_path)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[164]>", line 1, in <module>
        ftpClient.cwd(app_path)
      File "/usr/lib/python2.7/ftplib.py", line 562, in cwd
        return self.voidcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 253, in voidcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 659, in z2.txt
Failed example:
    ftpClient.retrlines('LIST')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[165]>", line 1, in <module>
        ftpClient.retrlines('LIST')
      File "/usr/lib/python2.7/ftplib.py", line 436, in retrlines
        resp = self.sendcmd('TYPE A')
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 666, in z2.txt
Failed example:
    ftpClient.quit()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[166]>", line 1, in <module>
        ftpClient.quit()
      File "/usr/lib/python2.7/ftplib.py", line 591, in quit
        resp = self.voidcmd('QUIT')
      File "/usr/lib/python2.7/ftplib.py", line 253, in voidcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 671, in z2.txt
Failed example:
    z2.FTP_SERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[167]>", line 1, in <module>
        z2.FTP_SERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 862, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 672, in z2.txt
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[168]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.py", line 862, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/layer.py", line 26, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 681, in z2.txt
Failed example:
    with z2.zopeApp() as app:
        print app.objectIds()
Expected:
    ['acl_users', 'Control_Panel']
Got:
    ['acl_users', 'Control_Panel', 'folder1', 'file1']
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 687, in z2.txt
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FTPServer:Functional in ... seconds.
    Tear down plone.testing.z2.FTPServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.0.15-py2.7.egg/plone/testing/z2.txt", line 693, in z2.txt
Failed example:
    ftpClient.connect(host, port, timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    error: [Errno ...] Connection refused
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.txt[174]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 553, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known


  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.content.tests.test_widgets.Startup

Error Message:
(<zope.i18nmessageid.message.MessageFactory object at 0x7efc2d769990>, <type 'unicode'>, 'title')

Stack Trace:
(<zope.i18nmessageid.message.MessageFactory object at 0x7efc2d769990>, <type 'unicode'>, 'title')

  File "/home/jenkins/.buildout/eggs/plone.app.content-3.0.14-py2.7.egg/plone/app/content/tests/test_widgets.py", line 10, in <module>
    from plone.app.content.browser.file import FileUploadView
  File "/home/jenkins/.buildout/eggs/plone.app.content-3.0.14-py2.7.egg/plone/app/content/browser/file.py", line 6, in <module>
    from plone.app.dexterity.interfaces import IDXFileFactory
  File "/home/jenkins/workspace/plone-5.0-python-2.7/src/plone.app.dexterity/plone/app/dexterity/interfaces.py", line 40, in <module>
    class ITypeSettings(Interface):
  File "/home/jenkins/workspace/plone-5.0-python-2.7/src/plone.app.dexterity/plone/app/dexterity/interfaces.py", line 45, in ITypeSettings
    title=_(u'Type Name'),
  File "/home/jenkins/.buildout/eggs/zope.schema-4.4.2-py2.7.egg/zope/schema/_bootstrapfields.py", line 325, in __init__
    super(Text, self).__init__(*args, **kw)
  File "/home/jenkins/.buildout/eggs/zope.schema-4.4.2-py2.7.egg/zope/schema/_bootstrapfields.py", line 307, in __init__
    super(MinMaxLen, self).__init__(**kw)
  File "/home/jenkins/.buildout/eggs/zope.schema-4.4.2-py2.7.egg/zope/schema/_bootstrapfields.py", line 152, in __init__
    self.title = title
  File "/home/jenkins/.buildout/eggs/zope.schema-4.4.2-py2.7.egg/zope/schema/fieldproperty.py", line 77, in __set__
    field.validate(value)
  File "/home/jenkins/.buildout/eggs/zope.schema-4.4.2-py2.7.egg/zope/schema/_bootstrapfields.py", line 183, in validate
    self._validate(value)
  File "/home/jenkins/.buildout/eggs/zope.schema-4.4.2-py2.7.egg/zope/schema/_bootstrapfields.py", line 310, in _validate
    super(MinMaxLen, self)._validate(value)
  File "/home/jenkins/.buildout/eggs/zope.schema-4.4.2-py2.7.egg/zope/schema/_bootstrapfields.py", line 210, in _validate
    raise WrongType(value, self._type, self.__name__)


FAILED:  plone.app.layout.viewlets.tests.test_content.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.5.17-py2.7.egg/plone/app/layout/viewlets/tests/test_content.py", line 2, in <module>
    from plone.app.layout.viewlets.content import ContentRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.5.17-py2.7.egg/plone/app/layout/viewlets/content.py", line 35, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),


FAILED:  plone.app.layout.viewlets.tests.test_history.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.5.17-py2.7.egg/plone/app/layout/viewlets/tests/test_history.py", line 2, in <module>
    from plone.app.layout.viewlets.content import WorkflowHistoryViewlet
  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.5.17-py2.7.egg/plone/app/layout/viewlets/content.py", line 35, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),


FAILED:  plone.app.linkintegrity.tests.test_circular.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/test_circular.py", line 3, in <module>
    from plone.app.linkintegrity.tests.base import ATBaseTestCase
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/base.py", line 3, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),


FAILED:  plone.app.linkintegrity.tests.test_functional.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/test_functional.py", line 11, in <module>
    from plone.app.linkintegrity.tests.base import ATBaseTestCase
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/base.py", line 3, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),


FAILED:  plone.app.linkintegrity.tests.test_imagescales.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/test_imagescales.py", line 2, in <module>
    from plone.app.linkintegrity.tests.base import ATBaseTestCase
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/base.py", line 3, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),


FAILED:  plone.app.linkintegrity.tests.test_references.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/test_references.py", line 4, in <module>
    from plone.app.linkintegrity.tests.base import ATBaseTestCase
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/base.py", line 3, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),


FAILED:  plone.app.linkintegrity.tests.test_upgrade.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/test_upgrade.py", line 4, in <module>
    from plone.app.linkintegrity.tests.base import ATBaseTestCase
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.0.3-py2.7.egg/plone/app/linkintegrity/tests/base.py", line 3, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),


FAILED:  plone.app.multilingual.tests.test_lif.Startup

Error Message:
__init__() got an unexpected keyword argument 'default'

Stack Trace:
__init__() got an unexpected keyword argument 'default'

  File "/home/jenkins/.buildout/eggs/plone.app.multilingual-3.0.13-py2.7.egg/plone/app/multilingual/tests/test_lif.py", line 7, in <module>
    from plone.app.relationfield.behavior import IRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 14, in <module>
    class IRelatedItems(model.Schema):
  File "/home/jenkins/.buildout/eggs/plone.app.relationfield-1.3.2-py2.7.egg/plone/app/relationfield/behavior.py", line 19, in IRelatedItems
    title=_(u'label_related_items', default=u'Related Items'),





More information about the Testbot mailing list