@@ -65,8 +65,8 @@ def test_cycle_greater_than_max_size_returns_none(self):
6565
6666class TestInspectStrategy (unittest .TestCase ):
6767 def test_strategies_without_countermeasures_return_their_strategy (self ):
68- tft = axelrod .TitForTat ()
69- inspector = axelrod .Alternator ()
68+ tft = axl .TitForTat ()
69+ inspector = axl .Alternator ()
7070
7171 tft .play (inspector )
7272 self .assertEqual (tft .history , [C ])
@@ -77,8 +77,8 @@ def test_strategies_without_countermeasures_return_their_strategy(self):
7777 self .assertEqual (tft .strategy (inspector ), D )
7878
7979 def test_strategies_with_countermeasures_return_their_countermeasures (self ):
80- d_geller = axelrod .GellerDefector ()
81- inspector = axelrod .Cooperator ()
80+ d_geller = axl .GellerDefector ()
81+ inspector = axl .Cooperator ()
8282 d_geller .play (inspector )
8383
8484 self .assertEqual (inspect_strategy (inspector = inspector , opponent = d_geller ), D )
@@ -87,16 +87,16 @@ def test_strategies_with_countermeasures_return_their_countermeasures(self):
8787
8888class TestSimulateMatch (unittest .TestCase ):
8989 def test_tft_reacts_to_cooperation (self ):
90- tft = axelrod .TitForTat ()
91- inspector = axelrod .Alternator ()
90+ tft = axl .TitForTat ()
91+ inspector = axl .Alternator ()
9292
9393 simulate_match (inspector , tft , C , 5 )
9494 self .assertEqual (inspector .history , [C , C , C , C , C ])
9595 self .assertEqual (tft .history , [C , C , C , C , C ])
9696
9797 def test_tft_reacts_to_defection (self ):
98- tft = axelrod .TitForTat ()
99- inspector = axelrod .Alternator ()
98+ tft = axl .TitForTat ()
99+ inspector = axl .Alternator ()
100100
101101 simulate_match (inspector , tft , D , 5 )
102102 self .assertEqual (inspector .history , [D , D , D , D , D ])
@@ -109,14 +109,14 @@ def setUp(self):
109109 self .game = axl .Game ()
110110
111111 def test_cooperator (self ):
112- tft = axelrod .Cooperator ()
112+ tft = axl .Cooperator ()
113113 # It always makes sense to defect here.
114114 self .assertEqual (look_ahead (self .inspector , tft , self .game , 1 ), D )
115115 self .assertEqual (look_ahead (self .inspector , tft , self .game , 2 ), D )
116116 self .assertEqual (look_ahead (self .inspector , tft , self .game , 5 ), D )
117117
118118 def test_tit_for_tat (self ):
119- tft = axelrod .TitForTat ()
119+ tft = axl .TitForTat ()
120120 # Cooperation should be chosen if we look ahead further than one move.
121121 self .assertEqual (look_ahead (self .inspector , tft , self .game , 1 ), D )
122122 self .assertEqual (look_ahead (self .inspector , tft , self .game , 2 ), C )
0 commit comments