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