Add a few tests for layer init
This commit is contained in:
parent
bdd2441a86
commit
b304302fea
1 changed files with 15 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue