def setUp(self): # Setup tracking server mock clean_db_and_bootstrap() server.TrackingServer.__init__ = Mock(return_value=None) self.server = server.TrackingServer()
def setUp(self): """Method called by nose before running each test""" clean_db_and_bootstrap() self.browser = Browser('http://localhost/', wsgi_app=app.wsgi_app)