/usr/lib/python2.7/dist-packages/openpyxl/develop/tests/test_classify.py is in python-openpyxl 2.3.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import pytest
from openpyxl.tests.schema import parse
from openpyxl.tests.schema import drawing_main_src
@pytest.fixture
def schema():
return parse(drawing_main_src)
def test_attribute_group(schema):
from ..classify import get_attribute_group
attrs = get_attribute_group(schema, "AG_Locking")
assert [a.get('name') for a in attrs] == ['noGrp', 'noSelect', 'noRot',
'noChangeAspect', 'noMove', 'noResize', 'noEditPoints', 'noAdjustHandles',
'noChangeArrowheads', 'noChangeShapeType']
def test_element_group(schema):
from ..classify import get_element_group
els = get_element_group(schema, "EG_FillProperties")
assert [el.get('name') for el in els] == ['noFill', 'solidFill', 'gradFill', 'blipFill', 'pattFill', 'grpFill']
|