summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_measure.py
blob: 4e0f7dda05a36296d5ea8b88a2166dd9c242cb88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# coding=utf-8
from measure import MeasureLength
from inkex.tester import ComparisonMixin, TestCase
from inkex.tester.filters import CompareNumericFuzzy

class LengthBasicTest(ComparisonMixin, TestCase):
    effect_class = MeasureLength
    compare_filters = [CompareNumericFuzzy()]
    comparisons = [
        ('--id=p1', '--id=p2'),
        ('--method=presets', '--presetFormat=TaP_start', '--id=p1'),
        ('--method=presets', '--presetFormat=TaP_end', '--id=p2'),
        ('--method=presets', '--presetFormat=FT_start', '--id=p1'),
        ('--method=presets', '--presetFormat=FT_bbox', '--id=p2'),
        ('--method=presets', '--presetFormat=FT_bbox', '--id=p2'),
        ('--type=area', '--id=p1'),
        ('--type=cofm', '--id=c3'),
    ]