2009-04-16 19:22:38 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from nose.tools import *
|
|
|
|
|
2012-03-14 23:44:48 +01:00
|
|
|
import mapnik, pickle
|
2009-04-16 19:22:38 +02:00
|
|
|
|
|
|
|
# Tests that exercise fonts.
|
|
|
|
|
|
|
|
# Trac Ticket #31
|
|
|
|
# Todo: Add logic to use this TextSymbolizer in a rendering
|
|
|
|
#@raises(UserWarning)
|
|
|
|
#def test_invalid_font():
|
2012-03-14 23:44:48 +01:00
|
|
|
# ts = mapnik.TextSymbolizer('Name', 'Invalid Font Name', int(8), mapnik.Color('black'))
|
2011-08-31 00:51:42 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
[eval(run)() for run in dir() if 'test_' in run]
|