

@no_mysql
@no_oracle
@no_spatialite
def test_geohash(self):
    'Testing GeoQuerySet.geohash().'
    if (not connection.ops.geohash):
        return
    ref_hash = '9vk1mfq8jx0c8e0386z6'
    h1 = City.objects.geohash().get(name='Houston')
    h2 = City.objects.geohash(precision=5).get(name='Houston')
    h2.assertEqual(ref_hash, h1.geohash)
    self.assertEqual(ref_hash[:5], h2.geohash)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/tests/geoapp/tests.py GeoQuerySetTest.test_geohash/VarMisuse@77/126 `self`->`h2`