@@ -337,7 +337,7 @@ def test_init_kwargs(self):
337
337
338
338
339
339
def test_responses (test_class , player1 , player2 , responses , history1 = None ,
340
- history2 = None , seed = None , attrs = None ):
340
+ history2 = None , seed = None ):
341
341
"""
342
342
Test responses to arbitrary histories. Used for the following tests
343
343
in TestPlayer: first_play_test, second_play_test, and responses_test.
@@ -359,9 +359,6 @@ def test_responses(test_class, player1, player2, responses, history1=None,
359
359
for response in responses :
360
360
s1 , s2 = simulate_play (player1 , player2 )
361
361
test_class .assertEqual (s1 , response )
362
- if attrs :
363
- for attr , value in attrs .items ():
364
- test_class .assertEqual (getattr (player1 , attr ), value )
365
362
366
363
367
364
class TestOpponent (Player ):
@@ -541,7 +538,6 @@ def versus_test(self, opponent, expected_actions,
541
538
542
539
def responses_test (self , responses , player_history = None ,
543
540
opponent_history = None , seed = None , length = 200 ,
544
- attrs = None ,
545
541
init_args = None , init_kwargs = None ):
546
542
"""Test responses to arbitrary histories. A match is played where the
547
543
histories are enforced and the sequence of plays in responses is
@@ -576,19 +572,19 @@ def responses_test(self, responses, player_history=None,
576
572
player2 = MockPlayer ()
577
573
player2 .set_match_attributes (length = length )
578
574
test_responses (self , player1 , player2 , responses , player_history ,
579
- opponent_history , seed = seed , attrs = attrs )
575
+ opponent_history , seed = seed )
580
576
581
577
# Test that we get the same sequence after a reset
582
578
player1 .reset ()
583
579
player2 .reset ()
584
580
test_responses (self , player1 , player2 , responses , player_history ,
585
- opponent_history , seed = seed , attrs = attrs )
581
+ opponent_history , seed = seed )
586
582
587
583
# Test that we get the same sequence after a clone
588
584
player1 = player1 .clone ()
589
585
player2 = player2 .clone ()
590
586
test_responses (self , player1 , player2 , responses , player_history ,
591
- opponent_history , seed = seed , attrs = attrs )
587
+ opponent_history , seed = seed )
592
588
593
589
def classifier_test (self , expected_class_classifier = None ):
594
590
"""Test that the keys in the expected_classifier dictionary give the
0 commit comments