#NEWLINE# def test_parse_score( self ) : #NEWLINE# #INDENT# 'Test commit_hook._parse_score' #NEWLINE# text = 'Your code has been rated at 8.51/10' #NEWLINE# self . assertEquals ( commit_hook . _parse_score ( text ) , 8.51 ) #NEWLINE# text = 'Your code has been rated at 8.51' #NEWLINE# self . assertEquals ( commit_hook . _parse_score ( text ) , 0.0 )