Add a few tests for layer init

This commit is contained in:
Dane Springmeyer 2011-03-02 15:17:55 +00:00
parent bdd2441a86
commit b304302fea

View file

@ -322,6 +322,21 @@ def test_textsymbolizer_pickle():
eq_(ts.fontset, ts2.fontset)
# Map initialization
def test_layer_init():
l = mapnik2.Layer('test')
eq_(l.name,'test')
eq_(l.envelope(),mapnik2.Box2d())
eq_(l.clear_label_cache,False)
eq_(l.cache_features,False)
eq_(l.visible(),True)
eq_(l.abstract,'')
eq_(l.active,True)
eq_(l.datasource,None)
eq_(l.queryable,False)
eq_(l.srs,'+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs')
eq_(l.title,'')
# Map initialization
def test_map_init():
m = mapnik2.Map(256, 256)