File: style_test.py

package info (click to toggle)
python-mapnik 1%3A0.0~20161104-ea5fd11-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,868 kB
  • ctags: 1,796
  • sloc: python: 11,913; cpp: 5,702; sh: 99; makefile: 19
file content (21 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from nose.tools import eq_

import mapnik

from .utilities import run_all


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, "")
    eq_(s.image_filters_inflate, False)

if __name__ == "__main__":
    exit(run_all(eval(x) for x in dir() if x.startswith("test_")))