def setUp(self):
     CMISBrowserTestCase.setUp(self)
     self.loginAsPortalOwner()
     self.browser = self.portal._getOb(
         self.portal.invokeFactory('CMIS Browser', 'browser'))
     settings = TestSettings(self.method)
     settings.configureBrowser(self.browser)
     self.api = CMISZopeAPI(self.browser)
 def test_browser(self):
     """Verify interface from the browser.
     """
     settings = TestSettings('soap')
     self.assertTrue(verifyObject(ICMISBrowser, self.browser))
     self.assertTrue(verifyObject(ICMISSettings, self.browser))
     self.assertTrue(verifyObject(ICMISSettings, settings))
     settings.configureBrowser(self.browser)
     self.assertEqual(self.browser.repository_connector, 'soap')