This file is indexed.

/usr/lib/python2.7/dist-packages/kazoo/tests/test_exceptions.py is in python-kazoo 2.2.1-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
from unittest import TestCase


class ExceptionsTestCase(TestCase):

    def _get(self):
        from kazoo import exceptions
        return exceptions

    def test_backwards_alias(self):
        module = self._get()
        self.assertTrue(getattr(module, 'NoNodeException'))
        self.assertTrue(module.NoNodeException, module.NoNodeError)

    def test_exceptions_code(self):
        module = self._get()
        exc_8 = module.EXCEPTIONS[-8]
        self.assertTrue(isinstance(exc_8(), module.BadArgumentsError))

    def test_invalid_code(self):
        module = self._get()
        self.assertRaises(RuntimeError, module.EXCEPTIONS.__getitem__, 666)