#NEWLINE# def test_score_history( self ) : #NEWLINE# #INDENT# 'Tests many (but not all) possible combinations.' #NEWLINE# player = self . player ( ) #NEWLINE# score_map = player . score_map #NEWLINE# score = player . score_history ( [ C , C , C ] , [ C , C , C ] , score_map ) #NEWLINE# self . assertEqual ( score , 0 ) #NEWLINE# score = player . score_history ( [ D , C , C ] , [ C , C , C ] , score_map ) #NEWLINE# self . assertEqual ( score , 1 ) #NEWLINE# score = player . score_history ( [ C , C , C ] , [ D , C , C ] , score_map ) #NEWLINE# self . assertEqual ( score , 2 ) #NEWLINE# score = player . score_history ( [ D , D , C ] , [ D , C , C ] , score_map ) #NEWLINE# self . assertEqual ( score , 7 ) #NEWLINE# score = player . score_history ( [ C , D , C ] , [ C , D , C ] , score_map ) #NEWLINE# self . assertEqual ( score , 12 ) #NEWLINE# score = player . score_history ( [ D , C , D ] , [ C , C , C ] , score_map ) #NEWLINE# self . assertEqual ( score , 17 ) #NEWLINE# score = player . score_history ( [ D , D , D ] , [ D , D , D ] , score_map ) #NEWLINE# self . assertEqual ( score , 63 )