#NEWLINE# def testRandomAccessWorksCorrectlyForSmallUncompactedCollection( self ) : #NEWLINE# #INDENT# with aff4 . FACTORY . Create ( self . collection_urn , 'PackedVersionedCollection' , mode = 'w' , token = self . token ) as fd : #NEWLINE# #INDENT# for i in range ( 5 ) : #NEWLINE# #INDENT# fd . Add ( rdf_flows . GrrMessage ( request_id = i ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . _testRandomAccessEqualsIterator ( )