#NEWLINE# def test_neg_list_insert_policy_is_string( self ) : #NEWLINE# #INDENT# '\n        Invoke list_insert() with policy is string\n        ' #NEWLINE# key = ( 'test' , 'demo' , 1 ) #NEWLINE# try : #NEWLINE# #INDENT# self . as_connection . list_insert ( key , 'age' , 1 , 85 , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , '' ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( exception . msg == 'policy must be a dict' )