def setUp(self): # the order of the following initializations is crucial because of # dependencies. # XXX explain better CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") TestCaseWithServer.setUp(self)
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") self._couch_url = 'http://localhost:' + str(self.wrapper.port) self._state = CouchServerState( self._couch_url, 'shared', 'tokens')
def setUp(self): # the order of the following initializations is crucial because of # dependencies. # XXX explain better CouchDBTestCase.setUp(self) self._couch_url = 'http://localhost:' + str(self.wrapper.port) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") TestCaseWithServer.setUp(self)
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self._couch_url = 'http://localhost:' + str(self.wrapper.port) self.db = CouchDatabase.open_database(urljoin(self._couch_url, 'user-user-uuid'), create=True, replica_uid='replica', ensure_ddocs=True) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-")
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self._couch_url = 'http://localhost:' + str(self.wrapper.port) self.db = CouchDatabase.open_database( urljoin(self._couch_url, 'user-user-uuid'), create=True, replica_uid='replica', ensure_ddocs=True) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-")
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.user = ('user-%s' % uuid4().hex) self.db = CouchDatabase.open_database( urljoin(self.couch_url, 'user-' + self.user), create=True, replica_uid='replica', ensure_ddocs=True) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") self.startTwistedServer()
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") self._couch_url = 'http://localhost:' + str(self.wrapper.port) # create the databases CouchDatabase.open_database(urljoin(self._couch_url, 'shared'), create=True, ensure_ddocs=True) CouchDatabase.open_database(urljoin(self._couch_url, 'tokens'), create=True, ensure_ddocs=True) self._state = CouchServerState(self._couch_url, 'shared', 'tokens')
def setUp(self): # the order of the following initializations is crucial because of # dependencies. # XXX explain better CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") TestCaseWithServer.setUp(self) # create the databases db = CouchDatabase.open_database( urljoin(self.couch_url, ('shared-%s' % (uuid4().hex))), create=True, ensure_ddocs=True) self.addCleanup(db.delete_database) self._state = CouchServerState(self.couch_url) self._state.open_database = mock.Mock(return_value=db)
def setUp(self): # the order of the following initializations is crucial because of # dependencies. # XXX explain better CouchDBTestCase.setUp(self) self._couch_url = 'http://localhost:' + str(self.wrapper.port) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") TestCaseWithServer.setUp(self) # create the databases CouchDatabase.open_database(urljoin(self._couch_url, 'shared'), create=True, ensure_ddocs=True) CouchDatabase.open_database(urljoin(self._couch_url, 'tokens'), create=True, ensure_ddocs=True) self._state = CouchServerState(self._couch_url)
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") self._couch_url = 'http://localhost:' + str(self.wrapper.port) # create the databases CouchDatabase.open_database( urljoin(self._couch_url, 'shared'), create=True, ensure_ddocs=True) CouchDatabase.open_database( urljoin(self._couch_url, 'tokens'), create=True, ensure_ddocs=True) self._state = CouchServerState( self._couch_url, 'shared', 'tokens')
def setUp(self): # the order of the following initializations is crucial because of # dependencies. # XXX explain better CouchDBTestCase.setUp(self) self._couch_url = 'http://localhost:' + str(self.wrapper.port) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") TestCaseWithServer.setUp(self) # create the databases CouchDatabase.open_database( urljoin(self._couch_url, 'shared'), create=True, ensure_ddocs=True) CouchDatabase.open_database( urljoin(self._couch_url, 'tokens'), create=True, ensure_ddocs=True) self._state = CouchServerState(self._couch_url)
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") self._couch_url = 'http://localhost:' + str(self.wrapper.port)
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-")
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") self.user = ('user-%s' % uuid.uuid4().hex)
def setUp(self): TestCaseWithServer.setUp(self) CouchDBTestCase.setUp(self) self.tempdir = tempfile.mkdtemp(prefix="leap_tests-") self._couch_url = "http://localhost:" + str(self.wrapper.port)