Package madrona :: Package features :: Module tests :: Class GeoJSONTest
[hide private]

Class GeoJSONTest

source code

django.test.TestCase --+
                       |
                      GeoJSONTest

Instance Methods [hide private]
 
setUp(self) source code
 
test_geojson_single(self) source code
 
test_geojson_byproperty(self)
Mpa5 has a custom geojson @property that should return a GeoJSON Feature with an extra `absolute_url` property
source code
 
test_geojson_nogeomfinal(self)
Mpa6 has no geometry_final attr should fail gracefully with null geometry
source code
 
test_no_geojson(self)
This one has export_geojson = False so no link should be available
source code
 
test_geojson_flat(self)
We expect default 'flat' behavior
source code
 
test_geojson_nest_url(self)
We expect custom 'nest_feature_set' behavior
source code
 
test_geojson_nest_multi(self)
We expect custom 'nest_feature_set' behavior
source code
 
test_geojson_forbidden(self) source code
 
test_geojson_transform(self) source code
 
test_geojson_download(self) source code
 
test_srid_util(self) source code
Method Details [hide private]

test_geojson_flat(self)

source code 

We expect default 'flat' behavior
    
    FeatureCollection:
        mpa1
        mpa2

test_geojson_nest_url(self)

source code 

We expect custom 'nest_feature_set' behavior
    
    FeatureCollection:
        folder1 (with a `feature_set` property listing uids and null geom)

test_geojson_nest_multi(self)

source code 

We expect custom 'nest_feature_set' behavior
    
    FeatureCollection:
        mpa1
        folder2 (with a `feature_set` property listing uids and null geom)