示例#1
0
 def test_add(self, lat=58, lng = 18):
     cache.get_or_create(self.region, "{0},{1}".format(lat,lng))
     r = self.region.get("{0},{1}".format(lat,lng))
     self.assertGreater(len(r), 0)
示例#2
0
 def get(self, q_lat, q_long):
      cache.get_or_create(self.my_shared_cache, "{0},{1}".format(q_lat, q_long))