Join views
----------

Set up user.

    >>> uf = app.site.acl_users
    >>> _ignored = uf._doAddUser('mgr', 'mgrpw', ['Manager'], [])

Create the browser object we'll be using.

    >>> from Testing.testbrowser import Browser
    >>> browser = Browser()
    >>> browser.handleErrors = False

Open the join form. Password field should be visible

    >>> browser.open('http://localhost/site/@@join.html')
    >>> browser.getControl(name='form.password').value == ''
    True

Cancel redirects anonymous users to the site root.

    >>> browser.open('http://localhost/site/@@join.html')
    >>> browser.getControl('[[cmf_default][Cancel]]').click()
    >>> browser.url
    'http://localhost/site'

Cancel redirects managers to the members_manage_form.

    >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    >>> browser.open('http://localhost/site/@@join.html')
    >>> browser.getControl('[[cmf_default][Cancel]]').click()
    >>> browser.url
    'http://localhost/site/members_manage_form'
