2012-08-21 00:17:37 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
from nose.tools import *
|
2013-06-03 02:28:24 +00:00
|
|
|
from utilities import execution_path, run_all
|
2012-08-21 00:17:37 +00:00
|
|
|
import mapnik
|
|
|
|
|
|
|
|
def test_style_init():
|
|
|
|
s = mapnik.Style()
|
|
|
|
eq_(s.filter_mode,mapnik.filter_mode.ALL)
|
|
|
|
eq_(len(s.rules),0)
|
|
|
|
eq_(s.opacity,1)
|
|
|
|
eq_(s.comp_op,None)
|
|
|
|
eq_(s.image_filters,"")
|
2014-02-27 18:11:17 +00:00
|
|
|
eq_(s.image_filters_inflate,False)
|
2012-08-21 00:17:37 +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_")))
|