def setUp(self): super(DatabaseTest, self).setUp() db_name = '/'.join([self.uri, self.db_name]) self.db = cloudant.Database(db_name) response = self.db.put() response.raise_for_status()
def setUp(self): super(ErrorTest, self).setUp() self.db = cloudant.Database('/'.join([self.uri, self.db_name]))
def setUp(self): super(IndexTest, self).setUp() self.db = cloudant.Database('/'.join([self.uri, self.db_name])) assert self.db.put().status_code == 201 self.doc = self.db.document(self.doc_name)
def setUp(self): super(DesignTest, self).setUp() self.db = cloudant.Database('/'.join([self.uri, self.db_name])) assert self.db.put().status_code == 201 self.doc = self.db.design('ddoc') assert self.doc.put(params=self.test_doc).status_code == 201