#NEWLINE# def details( self , result ) : #NEWLINE# #INDENT# 'Generate report details dict.' #NEWLINE# for ( status , test , context ) in report . results : #NEWLINE# #INDENT# report = { #NEWLINE# #INDENT# 'test' : self . get_test_title ( test ) , #NEWLINE# 'status' : status , #NEWLINE# #UNINDENT# } #NEWLINE# if ( context is not None ) : #NEWLINE# #INDENT# report [ 'context' ] = '{context}' . format ( context = context ) #NEWLINE# #UNINDENT# ( yield report )