This file is indexed.

/usr/lib/python2.7/dist-packages/catcher/tests.py is in python-catcher 0.1.7+git20140530-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
from __future__ import print_function
import unittest
import catcher


class CollectorTest (unittest.TestCase):
    class Tester:
        def divide(self, a, b):
            return a / b

        def inner(self):
            self.divide(2, 0)

        def test(self):
            self.inner()

    def test_collection(self):
        try:
            CollectorTest.Tester().test()
        except Exception as e:
            report = catcher.collect(e)
        html = catcher.formatters.HTMLFormatter().format(report)
        print(catcher.uploaders.AjentiOrgUploader().upload(html))