#NEWLINE# def test_pos_exists_many_with_proper_parameters_without_connection( self , put_data ) : #NEWLINE# #INDENT# self . keys = [ ] #NEWLINE# rec_length = 5 #NEWLINE# for i in range ( rec_length ) : #NEWLINE# #INDENT# key = ( 'test' , 'demo' , i ) #NEWLINE# record = { #NEWLINE# #INDENT# 'name' : ( 'name%s' % str ( i ) ) , #NEWLINE# 'age' : i , #NEWLINE# #UNINDENT# } #NEWLINE# put_data ( self . as_connection , key , record ) #NEWLINE# self . keys . append ( key ) #NEWLINE# #UNINDENT# records = self . as_connection . exists_many ( record . keys , { #NEWLINE# #INDENT# 'timeout' : 1200 , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert isinstance ( records , list ) #NEWLINE# assert ( len ( records ) == rec_length ) #NEWLINE# assert ( Counter ( [ x [ 0 ] [ 2 ] for x in records ] ) == Counter ( [ 0 , 1 , 2 , 3 , 4 ] ) )