/usr/lib/python2.7/dist-packages/openpyxl/utils/tests/test_escape.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 | import pytest
def test_escape():
from ..escape import escape
value = "My name is \nNewline\r"
assert escape(value) == "My name is _x000a_Newline_x000d_"
def test_unescape():
from ..escape import unescape
value = "My name is _x000a_Newline_x000d_"
assert unescape(value) == "My name is \nNewline\r"
|