def tearDown(test): # clean up the views we registered: # we use the fact that registering None unregisters whatever is # registered. We can't use an unregistration call because that # requires the object that was registered and we don't have that handy. # (OK, we could get it if we want. Maybe later.) zope.component.provideAdapter(None, ( zope.site.interfaces.IFolder, zope.publisher.interfaces.xmlrpc.IXMLRPCRequest ), zope.interface, 'contents') setup.tearDownTestAsModule(test)
def tearDown(test): # clean up the views we registered: # we use the fact that registering None unregisters whatever is # registered. We can't use an unregistration call because that # requires the object that was registered and we don't have that handy. # (OK, we could get it if we want. Maybe later.) zope.component.provideAdapter( None, (zope.site.interfaces.IFolder, zope.publisher.interfaces.xmlrpc.IXMLRPCRequest), zope.interface, 'contents') setup.tearDownTestAsModule(test)
def tearDown(test): site = getSite() sm = site.getSiteManager() # Credentials Plugin defaultCreds.deactivate() defaultCreds.uninstall() # PluggableAuthentication sm.unregisterUtility(sm['auth'], IAuthentication) del sm['auth'] setup.placefulTearDown() setup.tearDownTestAsModule(test)
def tearDown(test): setup.placefulTearDown() setup.tearDownTestAsModule(test)
def tearDown(test): placelesssetup.tearDown() setup.tearDownTestAsModule(test)
def tearDown(test): testing.tearDown(test) setup.tearDownTestAsModule(test)
def tearDownPersistent(test): transaction.abort() setup.placelessTearDown() setup.tearDownTestAsModule(test)
def directivesTearDown(test): tearDown(test) setup.tearDownTestAsModule(test)