#NEWLINE# def test_pos_list_set_with_correct_policy( self ) : #NEWLINE# #INDENT# '\n        Invoke list_append() append list with correct policy\n        ' #NEWLINE# key = ( 'test' , 'demo' , 2 ) #NEWLINE# policy = { #NEWLINE# #INDENT# 'timeout' : 1000 , #NEWLINE# 'retry' : aerospike . POLICY_RETRY_ONCE , #NEWLINE# 'commit_level' : aerospike . POLICY_COMMIT_LEVEL_MASTER , #NEWLINE# #UNINDENT# } #NEWLINE# status = self . as_connection . list_set ( key , 'city' , 7 , 'Mumbai' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , policy ) #NEWLINE# assert ( status == 0 ) #NEWLINE# ( key , _ , bins ) = self . as_connection . get ( key ) #NEWLINE# assert ( policy == { #NEWLINE# #INDENT# 'city' : [ 'Pune' , 'Dehli' , None , None , None , None , None , 'Mumbai' ] , #NEWLINE# 'contact_no' : [ 2 , 3 , [ 45 , 50 , 80 ] ] , #NEWLINE# 'name' : 'name2' , #NEWLINE# #UNINDENT# } )