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'))
def get(self): restaurant_uid = self.request.get(RESTAURANT_UID) result = {"exist": restaurant_logic.check_uid_exist(restaurant_uid)} self.send_response(result)