/usr/lib/python2.7/dist-packages/openpyxl/styles/tests/test_protection.py is in python-openpyxl 2.4.9-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 | # Copyright (c) 2010-2017 openpyxl
import pytest
@pytest.fixture
def Protection():
from .. protection import Protection
return Protection
def test_default(Protection):
pt = Protection()
assert dict(pt) == {'hidden':'0', 'locked':'1'}
def test_round_trip(Protection):
args = {'hidden':'1', 'locked':'1'}
pt = Protection(**args)
assert dict(pt) == args
|