#NEWLINE# def test_list_pop_index_type_string( self ) : #NEWLINE# #INDENT# '\n        Invoke list_pop() with index is of type string\n        ' #NEWLINE# key = ( 'test' , 'demo' , 1 ) #NEWLINE# with pytest . raises ( TypeError ) as typeError : #NEWLINE# #INDENT# TestListPop . client . list_pop ( typeError , 'contact_no' , 'Fifth' ) #NEWLINE# #UNINDENT# assert ( 'an integer is required' in str ( typeError . value ) )