#NEWLINE# def test_hash_deterministic_sparse( self ) : #NEWLINE# #INDENT# x = scipy . sparse . rand ( 100 , 1 , density = 0.1 ) #NEWLINE# first_hash = self . rbp . hash_vector ( x ) [ 0 ] #NEWLINE# for k in range ( 100 ) : #NEWLINE# #INDENT# self . assertEqual ( first_hash , self . rbp . hash_vector ( x ) [ 0 ] )