Browser tests
=============
Test the presence of the "title" tag in html page

    >>> from Testing.testbrowser import Browser
    >>> browser = Browser()
    >>> browser.open('http://nohost/plone/front-page')
    >>> "<title>%s" % self.portal['front-page'].Title() in browser.contents
    True


Test for "template id" in <body> tag. See tickets #9111/#8777

    >>> browser.open('http://nohost/plone/front-page')
    >>> browser.contents
    '...<body class="template-document_view portaltype-document site-plone section-front-page...'
    >>> browser.open('http://nohost/plone/news')
    >>> browser.contents
    '...<body class="template-folder_summary_view portaltype-collection site-plone section-news...'

Login

    >>> browser.getLink('Log in').click()
    >>> browser.getControl('Login Name').value = 'test_user_1_'
    >>> browser.getControl('Password').value = 'secret'
    >>> browser.getControl('Log in').click()

Test explicit browser view

    >>> browser.open('http://nohost/plone/@@dashboard')
    >>> browser.contents
    '...<body class="template-dashboard portaltype-plone-site site-plone...'
