'Test GeoJSON() function with Z values.'

def test_geojson(self):

    self._load_city_data()
    h = City3D.objects.annotate(geojson=AsGeoJSON('point', precision=6)).get(name='Houston')
    ref_json_regex = re.compile('^{"type":"Point","coordinates":\\[-95.363151,29.763374,18(\\.0+)?\\]}$')
    self.assertTrue(ref_json_regex.match(h.geojson))
