def tearDown(self): # remove wsgi intercept mechanism for server in self.servers: remove_wsgi_intercept(server['HOST'], int(server['PORT'])) urllib2_intercept.uninstall_opener() self.rm.set_db(settings.DB_CONNECTIONS[0])
def teardown_intercept(self): """Remove the installed WSGI intercepts.""" for host, port in self.intercepted: remove_wsgi_intercept(host, port) if self.intercept_api: uninstall() uninstall_opener() self.unpatch_wsgi_intercept()
def tearDown(self): uninstall_opener() for host, port in self.intercepted: wsgi_intercept.remove_wsgi_intercept(host, port) TestCase.tearDown(self)
def tearDown(self): if DO_TESTS: unpatch() uninstall_opener()
def uninstall(): mechanize.Browser = MechanizeBrowser uninstall_opener()
def tearDown(self): wsgi_intercept.remove_wsgi_intercept() uninstall_opener()