From baaf45e29805feda3bcee6e6a471f46c6181aa02 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 27 Sep 2009 17:45:52 +0000 Subject: [PATCH] enable fuller PointSymbolizer test now that #114 is closes --- tests/python_tests/object_test.py | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/tests/python_tests/object_test.py b/tests/python_tests/object_test.py index e4fb5817e..02d5e2389 100644 --- a/tests/python_tests/object_test.py +++ b/tests/python_tests/object_test.py @@ -18,25 +18,15 @@ def test_shieldsymbolizer_missing_image(): # PointSymbolizer initialization def test_pointsymbolizer_init(): - p = mapnik.PointSymbolizer() - + p = mapnik.PointSymbolizer() eq_(p.allow_overlap, False) - eq_(p.opacity, 1) - # XXX: Waiting on Trac Ticket #114 - #eq_(p.width, ) - #eq_(p.height, ) - #eq_(p.file, ) - #eq_(p.type, ) + eq_(p.opacity,1) + eq_(p.filename,'') p = mapnik.PointSymbolizer("../data/images/dummy.png", "png", 16, 16) - eq_(p.allow_overlap, False) eq_(p.opacity, 1) - # XXX: Waiting on Trac Ticket #114 - #eq_(p.width, ) - #eq_(p.height, ) - #eq_(p.file, ) - #eq_(p.type, ) + eq_(p.filename,'../data/images/dummy.png') # PointSymbolizer missing image file @raises(RuntimeError) @@ -247,7 +237,6 @@ def test_map_init(): eq_(m.srs, '+proj=latlong') # Map initialization from string -# Trac Ticket #99 def test_map_init_from_string(): map_string = '''