This file is indexed.

/usr/lib/python3/dist-packages/rpy2/rlike/tests/test_indexing.py is in python3-rpy2 2.8.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
import unittest
import sys
if sys.version_info[0] == 2:
    from itertools import izip as zip
import rpy2.rlike.indexing as rfi

class OrderTestCase(unittest.TestCase):

    def testOrder(self):
        seq  = (  2,   1,   5,   3,   4)
        expected = (1, 2, 3, 4, 5)
        res = rfi.order(seq)
        for va, vb in zip(expected, res):
            self.assertEqual(va, seq[vb])


def suite():
    suite = unittest.TestLoader().loadTestsFromTestCase(OrderTestCase)
    #suite.addTest(unittest.TestLoader().loadTestsFromTestCase(VectorizeTestCase))
    return suite

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