#NEWLINE# def test_Brawl( self ) : #NEWLINE# #INDENT# game = generate_game_for ( Brawl , StonetuskBoar , CardTestingAgent , DoNothingAgent ) #NEWLINE# game . players [ 0 ] . mana = 100 #NEWLINE# shield = Shieldbearer ( ) #NEWLINE# shield . player = game . players [ 0 ] #NEWLINE# shield . use ( game . players [ 0 ] , game ) #NEWLINE# shield . use ( game . players [ 0 ] , game ) #NEWLINE# golem = HarvestGolem ( ) #NEWLINE# golem . player = game . players [ 0 ] #NEWLINE# golem . use ( game . players [ 0 ] , game ) #NEWLINE# shield . use ( game . players [ 1 ] , game ) #NEWLINE# shield . use ( self . players [ 1 ] , game ) #NEWLINE# shield . use ( game . players [ 1 ] , game ) #NEWLINE# for turn in range ( 0 , 8 ) : #NEWLINE# #INDENT# game . play_single_turn ( ) #NEWLINE# #UNINDENT# self . assertEqual ( 3 , len ( game . players [ 0 ] . minions ) ) #NEWLINE# self . assertEqual ( 3 , len ( game . players [ 1 ] . minions ) ) #NEWLINE# game . play_single_turn ( ) #NEWLINE# self . assertEqual ( 1 , len ( game . players [ 0 ] . minions ) ) #NEWLINE# self . assertEqual ( 'Damaged Golem' , game . players [ 0 ] . minions [ 0 ] . card . name ) #NEWLINE# self . assertEqual ( 1 , len ( game . players [ 1 ] . minions ) )