Permalink
Browse files

Reenable "name" tests.

Refs #1482.
  • Loading branch information...
1 parent bbedec3 commit 60c3c590ed4fa79b18d5a2129058fa90cc9eb6e5 @herm herm committed Sep 23, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 tests/python_tests/object_test.py
  2. +1 −1 tests/run_tests.py
View
4 tests/python_tests/object_test.py
@@ -97,7 +97,7 @@ def test_text_symbolizer():
# old args required method
ts = mapnik.TextSymbolizer(mapnik.Expression('[Field_Name]'), 'Font Name', 8, mapnik.Color('black'))
-# eq_(str(ts.name), str(mapnik2.Expression('[Field_Name]'))) name field is no longer supported
+ eq_(str(ts.name), str(mapnik.Expression('[Field_Name]')))
eq_(ts.format.face_name, 'Font Name')
eq_(ts.format.text_size, 8)
eq_(ts.format.fill, mapnik.Color('black'))
@@ -112,7 +112,7 @@ def test_shield_symbolizer_init():
eq_(s.allow_overlap, False)
eq_(s.avoid_edges, False)
eq_(s.character_spacing,0)
- #eq_(str(s.name), str(mapnik2.Expression('[Field Name]'))) name field is no longer supported
+ eq_(str(s.name), str(mapnik.Expression('[Field Name]')))
eq_(s.face_name, 'DejaVu Sans Bold')
eq_(s.allow_overlap, False)
eq_(s.fill, mapnik.Color('#000000'))
View
2 tests/run_tests.py
@@ -5,7 +5,7 @@
try:
import nose
except ImportError:
- sys.stderr.write("Unable to run python tests: the third party 'nose' module is required\nTo install 'nose' do:\n\tsudo pip install nose (or on debian systems: apt-get install python-nose\n")
+ sys.stderr.write("Unable to run python tests: the third party 'nose' module is required\nTo install 'nose' do:\n\tsudo pip install nose (or on debian systems: apt-get install python-nose)\n")
sys.exit(1)
from python_tests.utilities import TodoPlugin

0 comments on commit 60c3c59

Please sign in to comment.