2009-04-16 17:22:38 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from nose.tools import *
|
2013-06-03 02:28:24 +00:00
|
|
|
from utilities import execution_path, run_all
|
2011-12-02 23:21:35 +00:00
|
|
|
import mapnik
|
2009-04-16 17:22:38 +00:00
|
|
|
|
|
|
|
# Tests that exercise fonts.
|
|
|
|
|
|
|
|
# Trac Ticket #31
|
|
|
|
# Todo: Add logic to use this TextSymbolizer in a rendering
|
|
|
|
#@raises(UserWarning)
|
|
|
|
#def test_invalid_font():
|
2011-11-23 11:33:58 +00:00
|
|
|
# ts = mapnik.TextSymbolizer('Name', 'Invalid Font Name', int(8), mapnik.Color('black'))
|
2011-08-30 22:51:42 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2014-07-14 16:34:20 +00:00
|
|
|
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))
|