def testDeletePointById(self): db = getDbObject(DB) obj_id = db[COLLECTION].save({NAME: 'test_GT_1306'}) with self.assertRaises(PointDoesNotExist): deletePointById('testservice', '111111111111111111111111') deletePointById('testservice', obj_id) obj = db[COLLECTION].find_one({ID: obj_id}) self.assertEqual(obj, None)
def delete(self, serviceName, pointId): deletePointById(serviceName, pointId) return {}, 200