mapnik/tests/python_tests/font_test.py

17 lines
447 B
Python
Raw Normal View History

#!/usr/bin/env python
from nose.tools import *
2013-07-13 01:45:51 +02:00
from utilities import execution_path, run_all
2011-12-03 00:21:35 +01:00
import mapnik
# Tests that exercise fonts.
# Trac Ticket #31
# Todo: Add logic to use this TextSymbolizer in a rendering
#@raises(UserWarning)
#def test_invalid_font():
# ts = mapnik.TextSymbolizer('Name', 'Invalid Font Name', int(8), mapnik.Color('black'))
if __name__ == "__main__":
2013-07-13 01:45:51 +02:00
run_all(eval(x) for x in dir() if x.startswith("test_"))