def get_by_name(name): return Restaurant.query(Restaurant.name == name).fetch()
def testInsertEntity(self): restaurant = Restaurant() restaurant.put() self.assertEqual(1, len(Restaurant.query().fetch(2)))
def get_all(): return Restaurant.query().fetch()