Log in with user2 which role id Editor::

    >>> browser.login(user2, user2)

    >>> browser.open('/@@manage-portlets')

    >>> 'portlets.Calendar' in browser.contents
    True
    >>> 'portlets.Classic' in browser.contents
    True
    >>> 'portlets.News' in browser.contents
    False
    >>> 'portlets.Events' in browser.contents
    True
    >>> 'portlets.Login' in browser.contents
    True
    >>> 'portlets.Navigation' in browser.contents
    True
    >>> 'portlets.Recent' in browser.contents
    True
    >>> 'portlets.Review' in browser.contents
    True
    >>> 'portlets.rss' in browser.contents
    True
    >>> 'portlets.Search' in browser.contents
    True
    >>> 'plone.portlet.collection.Collection' in browser.contents
    True
    >>> 'plone.portlet.static.Static' in browser.contents
    True

    >>> '>News</a>' in browser.contents
    False

Try to add Test portlet::

    >>> browser.open('/++contextportlets++plone.leftcolumn/+/hexagonit.portletroles.TestPortlet')

    >>> browser.getControl(name="form.actions.save").click()

    >>> '>News</a>' in browser.contents
    True

Add Login portlet::

    >>> browser.open('/++contextportlets++plone.leftcolumn/+/portlets.Login')

Move TestPortlet down::

    >>> browser.getLink('▼').click()
    >>> '>Show<' in browser.contents
    False
    >>> browser.getLink('Hide', index=0).click()
    >>> '>Show<' in browser.contents
    True
    >>> browser.getLink('×', index=1).click()
    >>> '>News</a>' in browser.contents
    False
