[Testbot] Plone 5.1 - Python 2.7 - Build # 695 - Still Failing!

jenkins at plone.org jenkins at plone.org
Thu Aug 18 03:52:28 UTC 2016


Plone 5.1 - Python 2.7 - Build # 695 - Still Failing:

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

Changes:

[vangheem] [fc] Repository: mockup Branch: refs/heads/master Date:







Test Results:

8 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 275, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 167, in helpers.rst
Failed example:
    repr(getSecurityManager()) != sm_repr
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 353, in helpers.rst
Failed example:
    'dummy_plugin1' in PluggableAuthService.MultiPlugins
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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 329, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 47, 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.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 61, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 70, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 84, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 94, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 100, 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.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 121, 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.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 132, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 275, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 136, 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.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 142, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 148, in layers.rst
Failed example:
    getSecurityManager().getUser()
Expected:
    <PloneUser 'test-user'>
Got:
    <SpecialUser 'Anonymous User'>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 155, 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.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 156, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 158, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 160, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 165, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 172, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 183, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 188, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 210, 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.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 221, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 273, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 223, 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.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 227, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 231, in layers.rst
Failed example:
    getSecurityManager().getUser()
Expected:
    <PloneUser 'test-user'>
Got:
    <SpecialUser 'Anonymous User'>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 237, 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.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 238, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 239, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 242, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 247, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 254, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 263, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 268, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 289, 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.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 300, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 305, in layers.rst
Failed example:
    port == int(os.environ.get('ZSERVER_PORT', 55001))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 315, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 273, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 323, 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.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 324, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 325, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 334, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 335, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 339, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 340, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 341, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 343, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 347, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 362, 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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 368, 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.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.003 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 405, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 273, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 228, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 784, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.testing/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.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/workspace/plone-5.1-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 492, 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 557, 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 329, 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.rst

Error Message:
Failed doctest test for z2.rst

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

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 46, in z2.rst
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.rst[10]>", line 1, in <module>
        runner.setup_layer(options, z2.STARTUP, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 55, in z2.rst
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.rst[12]>", line 1, in <module>
        z2.STARTUP['zodbDB'].storage
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 76, in z2.rst
Failed example:
    with z2.zopeApp(db=z2.STARTUP['zodbDB']) as app:
        'acl_users' in 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.rst[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.1.1-py2.7.egg/plone/testing/z2.py", line 276, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/__init__.py", line 52, in app
        return bobo_application(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-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.1.1-py2.7.egg/plone/testing/z2.rst", line 83, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 84, in z2.rst
Failed example:
    with z2.zopeApp(connection=conn) as app:
        'acl_users' in 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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 88, in z2.rst
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.rst[19]>", line 1, in <module>
        conn.opened is not None
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 91, in z2.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 z2.rst[20]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 132, in z2.rst
Failed example:
    len(list(getSiteManager().registeredAdapters())) > 1 # in fact, > a lot
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 137, in z2.rst
Failed example:
    getVocabularyRegistry()
Expected:
    <....Zope2VocabularyRegistry object at ...>
Got:
    <zope.schema.vocabulary.VocabularyRegistry object at 0x7fd3790377c0>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 155, in z2.rst
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.1.1-py2.7.egg/plone/testing/z2.rst", line 160, in z2.rst
Failed example:
    Zope2._began_startup
Expected:
    0
Got:
    1
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 162, in z2.rst
Failed example:
    Zope2.DB is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 164, in z2.rst
Failed example:
    Zope2.bobo_application is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 198, in z2.rst
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.rst[38]>", line 1, in <module>
        runner.setup_layer(options, z2.INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 269, in z2.rst
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.1.1-py2.7.egg/plone/testing/z2.rst", line 298, in z2.rst
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.rst[65]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 309, in z2.rst
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.rst[67]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 314, in z2.rst
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.rst[68]>", line 1, in <module>
        app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 324, in z2.rst
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.rst[73]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 920, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 333, in z2.rst
Failed example:
    with z2.zopeApp() as app:
        'acl_users' in app.objectIds() and 'folder1' not in app.objectIds()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 339, in z2.rst
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.1.1-py2.7.egg/plone/testing/z2.rst", line 354, in z2.rst
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.rst[81]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 362, in z2.rst
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.rst[83]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 366, in z2.rst
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.rst[84]>", line 1, in <module>
        app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 376, in z2.rst
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.rst[87]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 326, in _setObject
        v = self._checkId(id)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-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.1.1-py2.7.egg/plone/testing/z2.rst", line 381, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 383, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 393, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 394, in z2.rst
Failed example:
    browser.contents
Expected:
    'boo, bar & baz'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 406, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 407, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 414, in z2.rst
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.rst[102]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 920, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 423, in z2.rst
Failed example:
    with z2.zopeApp() as app:
        'acl_users' in app.objectIds()\
            and 'folder1' not in app.objectIds()\
            and 'file1' not in app.objectIds()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 431, in z2.rst
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.1.1-py2.7.egg/plone/testing/z2.rst", line 459, in z2.rst
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.rst[114]>", line 1, in <module>
        runner.setup_layer(options, z2.ZSERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 468, in z2.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 473, in z2.rst
Failed example:
    port == int(os.environ.get('ZSERVER_PORT', 55001))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 480, in z2.rst
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.rst[121]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 481, in z2.rst
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.rst[122]>", line 1, in <module>
        z2.ZSERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 487, in z2.rst
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.rst[123]>", line 1, in <module>
        app = z2.ZSERVER['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 488, in z2.rst
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.rst[124]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 326, in _setObject
        v = self._checkId(id)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-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.1.1-py2.7.egg/plone/testing/z2.rst", line 497, in z2.rst
Failed example:
    app_url.split(':')[:-1]
Expected:
    ['http', '//localhost']
Got:
    []
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 501, in z2.rst
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.rst[129]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 421, in open
        protocol = req.get_type()
      File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
        raise ValueError, "unknown url type: %s" % self.__original
    ValueError: unknown url type: //folder1
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 502, in z2.rst
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.rst[130]>", line 1, in <module>
        print conn.read()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 504, in z2.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 z2.rst[131]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 508, in z2.rst
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.rst[132]>", line 1, in <module>
        z2.ZSERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 920, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 509, in z2.rst
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.rst[133]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 920, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 518, in z2.rst
Failed example:
    with z2.zopeApp() as app:
        'acl_users' in app.objectIds() and 'folder1' not in app.objectIds()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 524, in z2.rst
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.1.1-py2.7.egg/plone/testing/z2.rst", line 530, in z2.rst
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.rst[139]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 421, in open
        protocol = req.get_type()
      File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
        raise ValueError, "unknown url type: %s" % self.__original
    ValueError: unknown url type: //folder1
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 563, in z2.rst
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.rst[146]>", line 1, in <module>
        runner.setup_layer(options, z2.FTP_SERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 345, in setUp
        self.setUpDatabase()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 555, in setUpDatabase
        name='Startup')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 572, in z2.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 577, in z2.rst
Failed example:
    port == int(os.environ.get('FTPSERVER_PORT', 55002))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 584, in z2.rst
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.rst[153]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 585, in z2.rst
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.rst[154]>", line 1, in <module>
        z2.FTP_SERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 879, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/zodb.py", line 26, in stackDemoStorage
        storage = DemoStorage(name=name, base=db.storage)
    AttributeError: 'DB' object has no attribute 'storage'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 589, in z2.rst
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.rst[155]>", line 1, in <module>
        app = z2.FTP_SERVER['app'] # would normally be self.layer['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 590, in z2.rst
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.rst[156]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-py2.7.egg/OFS/ObjectManager.py", line 326, in _setObject
        v = self._checkId(id)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.24-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.1.1-py2.7.egg/plone/testing/z2.rst", line 594, in z2.rst
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.rst[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.12-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.24-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.12-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 0x19099597a54e0d09 when the connection is closed
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 606, in z2.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 z2.rst[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 557, 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.1.1-py2.7.egg/plone/testing/z2.rst", line 609, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 612, in z2.rst
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.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 615, in z2.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 z2.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 621, in z2.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 z2.rst[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.1.1-py2.7.egg/plone/testing/z2.rst", line 626, in z2.rst
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.rst[167]>", line 1, in <module>
        z2.FTP_SERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 920, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 627, in z2.rst
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.rst[168]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.py", line 920, in testTearDown
        app = self['app']
      File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 636, in z2.rst
Failed example:
    with z2.zopeApp() as app:
        'acl_users' in app.objectIds() and 'folder1' not in app.objectIds()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.testing-4.1.1-py2.7.egg/plone/testing/z2.rst", line 642, in z2.rst
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.1.1-py2.7.egg/plone/testing/z2.rst", line 648, in z2.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 z2.rst[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 557, 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 329, 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.layout.viewlets.tests.test_content.Startup

Error Message:
No module named CMFEditions.Permissions

Stack Trace:
No module named CMFEditions.Permissions

  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.6.1-py2.7.egg/plone/app/layout/viewlets/tests/test_content.py", line 3, in <module>
    from plone.app.layout.viewlets.content import ContentRelatedItems
  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.6.1-py2.7.egg/plone/app/layout/viewlets/content.py", line 17, in <module>
    from Products.CMFEditions.Permissions import AccessPreviousVersions


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

Error Message:
No module named CMFEditions.Permissions

Stack Trace:
No module named CMFEditions.Permissions

  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.6.1-py2.7.egg/plone/app/layout/viewlets/tests/test_history.py", line 2, in <module>
    from plone.app.layout.viewlets.content import ContentHistoryViewlet
  File "/home/jenkins/.buildout/eggs/plone.app.layout-2.6.1-py2.7.egg/plone/app/layout/viewlets/content.py", line 17, in <module>
    from Products.CMFEditions.Permissions import AccessPreviousVersions


FAILED:  plone.app.upgrade.v30.tests.Startup

Error Message:
No module named CMFEditions.interfaces

Stack Trace:
No module named CMFEditions.interfaces

  File "/home/jenkins/.buildout/eggs/plone.app.upgrade-1.3.27-py2.7.egg/plone/app/upgrade/v30/__init__.py", line 2, in <module>
    import alphas
  File "/home/jenkins/.buildout/eggs/plone.app.upgrade-1.3.27-py2.7.egg/plone/app/upgrade/v30/alphas.py", line 48, in <module>
    from Products.CMFEditions.interfaces import IArchivistTool


FAILED:  plone.app.versioningbehavior.tests.test_IntegrationTests.Startup

Error Message:
No module named CMFEditions.tests

Stack Trace:
No module named CMFEditions.tests

  File "/home/jenkins/.buildout/eggs/plone.app.versioningbehavior-1.2.9-py2.7.egg/plone/app/versioningbehavior/tests/test_IntegrationTests.py", line 5, in <module>
    from Products.CMFEditions.tests import test_IntegrationTests


FAILED:  plone.app.versioningbehavior.tests.test_modifiers.Startup

Error Message:
No module named CMFEditions.interfaces.IArchivist

Stack Trace:
No module named CMFEditions.interfaces.IArchivist

  File "/home/jenkins/.buildout/eggs/plone.app.versioningbehavior-1.2.9-py2.7.egg/plone/app/versioningbehavior/tests/test_modifiers.py", line 2, in <module>
    from plone.app.versioningbehavior.modifiers import CloneNamedFileBlobs
  File "/home/jenkins/.buildout/eggs/plone.app.versioningbehavior-1.2.9-py2.7.egg/plone/app/versioningbehavior/modifiers.py", line 10, in <module>
    from Products.CMFEditions.interfaces.IArchivist import ArchivistRetrieveError





More information about the Testbot mailing list