This file is indexed.

/usr/share/pyshared/couchdb/tests/package.py is in python-couchdb 0.8-0ubuntu2.

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
# -*- coding: utf-8 -*-

import unittest
import couchdb

class PackageTestCase(unittest.TestCase):

    def test_exports(self):
        expected = set([
            # couchdb.client
            'Server', 'Database', 'Document',
            # couchdb.http
            'HTTPError', 'PreconditionFailed', 'ResourceNotFound',
            'ResourceConflict', 'ServerError', 'Unauthorized',
            'Resource', 'Session'
        ])
        exported = set(e for e in dir(couchdb) if not e.startswith('_'))
        self.assertTrue(expected <= exported)


def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(PackageTestCase, 'test'))
    return suite


if __name__ == '__main__':
    unittest.main(defaultTest='suite')