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'


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 are logged in as manager we head over to the zmi manage interface and 
the Component Registry tab and then to the Registry Browser.

	>>> browser.open(base_url + '/manage_main')
	>>> browser.getLink('Component Registry').click()
	>>> browser.url
	'http://nohost/@@registry.html'
	>>> browser.getLink('browse the registry here').click()
	>>> browser.url
	'http://nohost/@@registry_browser.html'
	
Since the configuration of plone and zope changes over time there is only one thing that we are 
absolutely certain about and that is that plone.introspector should be in the browsing tree.

	>>> browser.contents
	'...plone...introspector...interfaces...ICodeIntrospector...'
	