#NEWLINE# def test_ExplosiveTrap_hero( self ) : #NEWLINE# #INDENT# game = generate_game_for ( ExplosiveTrap , Naturalize , OneCardPlayingAgent , PredictableAgent ) #NEWLINE# for turn in range ( 0 , 3 ) : #NEWLINE# #INDENT# game . play_single_turn ( ) #NEWLINE# #UNINDENT# self . assertEqual ( 1 , len ( game . current_player . secrets ) ) #NEWLINE# self . assertEqual ( 30 , game . current_player . hero . health ) #NEWLINE# self . assertEqual ( 30 , game . other_player . hero . health ) #NEWLINE# game . play_single_turn ( ) #NEWLINE# self . assertEqual ( 0 , len ( game . other_player . secrets ) ) #NEWLINE# self . assertEqual ( 29 , game . current_player . hero . health ) #NEWLINE# self . assertEqual ( 29 , game . other_player . hero . health )