This file is indexed.

/usr/lib/python3/dist-packages/defcon/test/objects/test_info.py is in python3-defcon 0.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
import unittest
from defcon import Font, Info
from defcon.test.testTools import getTestFontPath


class InfoTest(unittest.TestCase):

    def __init__(self, methodName):
        unittest.TestCase.__init__(self, methodName)

    def setUp(self):
        self.font = Font()
        self.info = Info()

    def tearDown(self):
        del self.font

    def test_getParent(self):
        info = self.info
        self.assertIsNone(info.getParent())
        info = Info(self.font)
        self.assertEqual(info.getParent(), self.font)

    def test_font(self):
        info = self.info
        self.assertIsNone(info.font)
        info = Info(self.font)
        self.assertEqual(info.font, self.font)

    def test_endSelfNotificationObservation(self):
        font = self.font
        info = Info(font)
        self.assertIsNotNone(info.dispatcher)
        info.endSelfNotificationObservation()
        self.assertIsNone(info.dispatcher)
        self.assertIsNone(info.font)


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