This file is indexed.

/usr/lib/python3/dist-packages/pyutilib/component/app/tests/test_simple.py is in python3-pyutilib 5.3.5-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Test simple applications
#

import os
import sys
from os.path import abspath, dirname
currdir = dirname(abspath(__file__))+os.sep

import pyutilib.th as unittest
import pyutilib.subprocess


class Test(unittest.TestCase):

    @unittest.skipIf(sys.version_info[:2] < (2,6), "Skipping tests because configuration output is not guaranteed to be sorted")
    def test_app1a(self):
        pyutilib.subprocess.run(sys.executable+" "+currdir+os.sep+"app1a.py "+currdir)
        self.assertFileEqualsBaseline(currdir+"config1.out", currdir+"config1.txt")

    @unittest.skipIf(sys.version_info[:2] < (2,6), "Skipping tests because configuration output is not guaranteed to be sorted")
    def test_app1b(self):
        pyutilib.subprocess.run(sys.executable+" "+currdir+os.sep+"app1b.py "+currdir)
        self.assertFileEqualsBaseline(currdir+"config1.out", currdir+"config1.txt")

    def test_app2(self):
        pyutilib.subprocess.run(sys.executable+" "+currdir+os.sep+"app2.py "+currdir)
        self.assertFileEqualsBaseline(currdir+"summary.out", currdir+"summary.txt")

    def test_app3(self):
        pyutilib.subprocess.run(sys.executable+" "+currdir+os.sep+"app3.py "+currdir)
        if not os.path.exists(currdir+"app3.log"):
            self.fail("expected log file")
        else:
            os.remove(currdir+"app3.log")

    def test_app4(self):
        pyutilib.subprocess.run(sys.executable+" "+currdir+os.sep+"app4.py "+currdir)
        if not os.path.exists(currdir+"tmp2.ini"):
            self.fail("expected ini file")
        else:
            os.remove(currdir+"tmp2.ini")

if __name__ == "__main__":
    unittest.main()