def test_does_collection_exist(self): collection_name = str(uuid.uuid1()) StorageServer.add_collection(self.__account_id, collection_name, callback=self.stop) response = self.wait() self.assertEqual(StorageResponse.OK, response) StorageServer.does_collection_exist(self.__account_id, collection_name, callback=self.stop) response = self.wait() self.assertTrue(response) # cleanup StorageServer.remove_collection(self.__account_id, collection_name, callback=self.stop) self.wait()
def test_does_collection_exist_invalid_collection(self): StorageServer.does_collection_exist(self.__account_id, "dummy", callback=self.stop) response = self.wait() self.assertTrue(not response)