@log_debug
def area_around(location):
    for loc_x in range(location[0]-1, location[0]+2):
        for loc_y in range(location[1]-1, location[1]+2):
            if loc_x != location[0] or loc_y != location[1]:
                yield (loc_x, loc_y)
Testing KML output from the database using GeoQuerySet.kml().
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/data/geometry.py/area_around--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/tests/geoapp/tests.py/GeoQuerySetTest.test_kml