#NEWLINE# def _description( self , test ) : #NEWLINE# #INDENT# if self . _format : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . _format . format ( method_name = str ( test ) , short_description = ( test . shortDescription ( ) or '' ) ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# sys . exit ( _ ( 'Bad format string: {format}\nReplacement options are: {{short_description}} and {{method_name}}' ) . format ( format = self . _format ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( test . shortDescription ( ) or str ( test ) )