This file is indexed.

/usr/share/pyshared/ncrypt/test/testrand.py is in python-ncrypt 0.6.4-0ubuntu8.

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
import sys, os, unittest
from ncrypt import rand

class RandTestCase( unittest.TestCase ) :
    def testBytes( self ) :
        for i in range(1,2000) :
            s = rand.bytes( i, checkResult=1 )
            self.assertEquals( len(s), i )

    def testLargeBytes( self ) :
        n = 4096
        for i in range(2000) :
            s = rand.bytes( n, checkResult=1 )
            self.assertEquals( len(s), n )

    def testPseudoBytes( self ) :
        for i in range(1,2000) :
            s = rand.pseudoBytes( i )
            self.assertEquals( len(s), i )

    def testLargePseudoBytes( self ) :
        n = 4096
        for i in range(2000) :
            s = rand.pseudoBytes( n )
            self.assertEquals( len(s), n )

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