#NEWLINE# def test_CruelTaskmaster( self ) : #NEWLINE# #INDENT# game = generate_game_for ( CruelTaskmaster , Shieldbearer , OneCardPlayingAgent , OneCardPlayingAgent ) #NEWLINE# for turn in range ( 0 , 2 ) : #NEWLINE# #INDENT# game . play_single_turn ( ) #NEWLINE# #UNINDENT# self . assertEqual ( 1 , len ( game . players [ 1 ] . minions ) ) #NEWLINE# self . assertEqual ( 0 , game . players [ 1 ] . minions [ 0 ] . calculate_attack ( ) ) #NEWLINE# self . assertEqual ( 4 , game . players [ 1 ] . minions [ 0 ] . health ) #NEWLINE# game . play_single_turn ( ) #NEWLINE# self . assertEqual ( 1 , len ( game . players [ 0 ] . minions ) ) #NEWLINE# self . assertEqual ( 2 , game . players [ 0 ] . minions [ 0 ] . calculate_attack ( ) ) #NEWLINE# self . assertEqual ( 2 , game . players [ 0 ] . minions [ 0 ] . health ) #NEWLINE# self . assertEqual ( 'Cruel Taskmaster' , game . players [ 0 ] . minions [ 0 ] . card . name ) #NEWLINE# self . assertEqual ( 1 , len ( game . players [ 1 ] . minions ) ) #NEWLINE# self . assertEqual ( 2 , game . players [ 1 ] . minions [ 0 ] . calculate_attack ( ) ) #NEWLINE# self . assertEqual ( 3 , game . players [ 1 ] . minions [ 0 ] . health ) #NEWLINE# game . play_single_turn ( ) #NEWLINE# game . play_single_turn ( ) #NEWLINE# self . assertEqual ( 2 , len ( game . players [ 0 ] . minions ) ) #NEWLINE# self . assertEqual ( 2 , len ( game . players [ 1 ] . minions ) ) #NEWLINE# self . assertEqual ( 2 , game . players [ 0 ] . minions [ 0 ] . calculate_attack ( ) ) #NEWLINE# self . assertEqual ( 2 , game . players [ 0 ] . minions [ 0 ] . health ) #NEWLINE# self . assertEqual ( 2 , game . players [ 0 ] . minions [ 1 ] . calculate_attack ( ) ) #NEWLINE# self . assertEqual ( 2 , game . players [ 0 ] . minions [ 1 ] . health ) #NEWLINE# self . assertEqual ( 2 , game . players [ 1 ] . minions [ 0 ] . calculate_attack ( ) ) #NEWLINE# self . assertEqual ( 3 , game . players [ 1 ] . minions [ 0 ] . health ) #NEWLINE# self . assertEqual ( 2 , game . players [ 1 ] . minions [ 1 ] . calculate_attack ( ) ) #NEWLINE# self . assertEqual ( 3 , game . players [ 1 ] . minions [ 1 ] . health )