Beispiel #1
0
 def testGetById(self):
   restaurant_logic.add('fulinmenid', 'fulinmen', self.image_key) 
   self.assertTrue(restaurant_logic.check_uid_exist('fulinmenid'))
   self.assertFalse(restaurant_logic.check_uid_exist('fulinmen'))
Beispiel #2
0
Datei: api.py Projekt: niczy/hyo
 def get(self):
   restaurant_uid = self.request.get(RESTAURANT_UID)
   result = {"exist": restaurant_logic.check_uid_exist(restaurant_uid)}
   self.send_response(result)