#NEWLINE# def score( self ) : #NEWLINE# #INDENT# format . print_line ( '-' ) #NEWLINE# print ( 'Doctests for {}' . format ( self . name ) ) #NEWLINE# print ( ) #NEWLINE# success = self . case . run ( ) #NEWLINE# score = ( 1.0 if success else 0.0 ) #NEWLINE# print ( 'Score: {}/1' . format ( score ) ) #NEWLINE# print ( ) #NEWLINE# return score