#NEWLINE# def test_neg_list_set_with_incorrect_policy( self ) : #NEWLINE# #INDENT# '\n        Invoke list_set() with incorrect policy\n        ' #NEWLINE# key = ( 'test' , 'demo' , 1 ) #NEWLINE# policy = { #NEWLINE# #INDENT# 'timeout' : 0.5 , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# self . as_connection . list_set ( key , 'contact_no' , 0 , 850 , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , policy ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( exception . msg == 'timeout is invalid' )