Browser tests for plone.introspector
=============================

Some setup code

    >>> from Products.Five.testbrowser import Browser
    >>> browser = Browser()
    >>> portal_url = self.portal.absolute_url()
    >>> base_url = 'http://nohost'
    >>> object_inspect = '++inspect++/info.html'


The following is useful when writing and debugging testbrowser tests. It lets
us see error messages properly.

    >>> browser.handleErrors = False
    >>> self.portal.error_log._ignored_exceptions = ()

Finally, we need to log in as the portal owner, i.e. an administrator user. We
want to go to the manage screens but the easiest way is to go via the 
Plone portal login screens.

    >>> from Products.PloneTestCase.setup import portal_owner, default_password

    >>> browser.open(portal_url + '/login_form?came_from=' + portal_url)
    >>> browser.getControl(name='__ac_name').value = portal_owner
    >>> browser.getControl(name='__ac_password').value = default_password
    >>> browser.getControl(name='submit').click()
    
Now we head over to the object introspector. by adding '++inspect++/info.html' to 
any object we get lots of information about the object...:

	>>> browser.open(portal_url + '/' + object_inspect)
	>>> 'Object Information' in browser.contents
	True
	>>> browser.contents
	"...object...
	...Type:...
	...PloneSite..."
	>>> 'view' in browser.contents
	True