#NEWLINE# def test_list_trim_with_negative_index( self ) : #NEWLINE# #INDENT# '\n        Invoke list_trim() with negative index\n        ' #NEWLINE# key = ( 'test' , 'demo' , 1 ) #NEWLINE# try : #NEWLINE# #INDENT# TestListTrim . client . list_trim ( key , 'contact_no' , ( - 56 ) , 5 ) #NEWLINE# #UNINDENT# except e . InvalidRequest as exception : #NEWLINE# #INDENT# assert ( exception . code == 4 )