This file is indexed.

/usr/lib/python2.7/dist-packages/openpyxl/writer/tests/test_strings.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
24
25
26
27
28
29
30
31
from __future__ import absolute_import
# Copyright (c) 2010-2015 openpyxl

from openpyxl.tests.helper import compare_xml


def test_write_string_table(datadir):
    from ..strings import write_string_table

    datadir.chdir()
    table = ['This is cell A1 in Sheet 1', 'This is cell G5']
    content = write_string_table(table)
    with open('sharedStrings.xml') as src:
        expected = src.read()
    diff = compare_xml(content, expected)
    assert diff is None, diff


def test_preseve_space():
    from ..strings import write_string_table
    table = ['String with trailing space   ']
    content = write_string_table(table)
    expected = """
    <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" uniqueCount="1">
    <si>
      <t xml:space="preserve">String with trailing space</t>
    </si>
    </sst>
    """
    diff = compare_xml(content, expected)
    assert diff is None, diff