File: style_test.py

package info (click to toggle)
python-mapnik 1%3A0.0~20240222-5ab32f020-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,364 kB
  • sloc: python: 11,685; cpp: 5,776; sh: 242; makefile: 10
file content (10 lines) | stat: -rw-r--r-- 273 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import mapnik

def test_style_init():
    s = mapnik.Style()
    assert s.filter_mode ==  mapnik.filter_mode.ALL
    assert len(s.rules) ==  0
    assert s.opacity ==  1
    assert s.comp_op ==  None
    assert s.image_filters ==  ""
    assert not s.image_filters_inflate