コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: point_resource.py プロジェクト: geo2tag/geo2tag
 def delete(self, serviceName, pointId):
     deletePointById(serviceName, pointId)
     return {}, 200
コード例 #4
0
 def delete(self, serviceName, pointId):
     deletePointById(serviceName, pointId)
     return {}, 200