This file is indexed.

/usr/lib/python2.7/dist-packages/nose2/tests/functional/test_decorators.py is in python-nose2 0.5.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
from nose2.tests._common import FunctionalTestCase


class DecoratorsTests(FunctionalTestCase):
    def test_with_setup(self):
        process = self.runIn(
            'scenario/decorators', 'test_decorators.test_with_setup')

        self.assertTestRunOutputMatches(process, stderr="Ran 1 test")
        self.assertEqual(process.poll(), 0, process.stderr.getvalue())
        
    def test_with_teardown(self):
        process = self.runIn(
            'scenario/decorators', 'test_decorators.test_with_teardown', 'test_decorators.test_teardown_ran')

        self.assertTestRunOutputMatches(process, stderr="Ran 2 test")
        self.assertEqual(process.poll(), 0, process.stderr.getvalue())