#NEWLINE# def test_pos_exists_many_with_record_expiry( self , put_data ) : #NEWLINE# #INDENT# keys = [ ] #NEWLINE# key = ( 'test' , 'demo' , 20 ) #NEWLINE# rec = { #NEWLINE# #INDENT# 'name' : 'John' , #NEWLINE# #UNINDENT# } #NEWLINE# meta = { #NEWLINE# #INDENT# 'gen' : 3 , #NEWLINE# 'ttl' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# policy = { #NEWLINE# #INDENT# 'timeout' : 1000 , #NEWLINE# #UNINDENT# } #NEWLINE# put_data ( self . as_connection , key , rec , meta , policy ) #NEWLINE# keys . append ( key ) #NEWLINE# time . sleep ( 2 ) #NEWLINE# records = self . as_connection . exists_many ( keys ) #NEWLINE# assert isinstance ( records , list ) #NEWLINE# assert ( len ( records ) == 1 ) #NEWLINE# for x in records : #NEWLINE# #INDENT# assert ( x [ 1 ] is None )