Skip to content

Commit cdca2e5

Browse files
committed
Remove unneeded white space.
1 parent 1f80560 commit cdca2e5

25 files changed

+0
-56
lines changed

axelrod/tests/strategies/test_alternator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class TestAlternator(TestPlayer):
2121
}
2222

2323
def test_strategy(self):
24-
2524
actions = [(C, C), (D, C)] * 5
2625
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
2726

axelrod/tests/strategies/test_ann.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class TestEvolvedANN(TestPlayer):
3333
}
3434

3535
def test_strategy(self):
36-
3736
actions = [(C, C)] * 5
3837
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
3938

@@ -59,7 +58,6 @@ class TestEvolvedANN5(TestPlayer):
5958
}
6059

6160
def test_strategy(self):
62-
6361
actions = [(C, C)] * 5
6462
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
6563

@@ -82,7 +80,6 @@ class TestEvolvedANNNoise05(TestPlayer):
8280
}
8381

8482
def test_strategy(self):
85-
8683
actions = [(C, C)] * 5
8784
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
8885

axelrod/tests/strategies/test_apavlov.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class TestAPavlov2006(TestPlayer):
2121
}
2222

2323
def test_strategy(self):
24-
2524
actions = [(C, C)] * 7
2625
self.versus_test(axelrod.Cooperator(), expected_actions=actions,
2726
attrs={"opponent_class": "Cooperative"})

axelrod/tests/strategies/test_appeaser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class TestAppeaser(TestPlayer):
2121
}
2222

2323
def test_strategy(self):
24-
2524
actions = [(C, C), (C, C), (C, C), (C, C), (C, C)]
2625
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
2726

axelrod/tests/strategies/test_averagecopier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ class TestNiceAverageCopier(TestPlayer):
7777
}
7878

7979
def test_strategy(self):
80-
8180
# Tests that if opponent has played all C then player chooses C.
8281
actions = [(C, C)] * 10
8382
self.versus_test(axelrod.Cooperator(), expected_actions=actions,

axelrod/tests/strategies/test_axelrod_first.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class TestRevisedDowning(TestPlayer):
5959
}
6060

6161
def test_strategy(self):
62-
6362
actions = [(C, C), (C, C), (C, C)]
6463
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
6564

@@ -134,7 +133,6 @@ def test_decay(self):
134133
player._end_coop_prob)
135134

136135
def test_strategy(self):
137-
138136
actions = [(C, C)] * 41 + [(D, C)]
139137
self.versus_test(axelrod.Cooperator(), expected_actions=actions,
140138
seed=1)
@@ -162,7 +160,6 @@ class TestGrofman(TestPlayer):
162160
}
163161

164162
def test_strategy(self):
165-
166163
actions = [(C, C)] * 7
167164
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
168165

@@ -197,7 +194,6 @@ def test_four_vector(self):
197194
test_four_vector(self, expected_dictionary)
198195

199196
def test_strategy(self):
200-
201197
actions = [(C, C), (C, C), (C, C), (C, C)]
202198
self.versus_test(axelrod.Cooperator(), expected_actions=actions, seed=1)
203199

@@ -320,7 +316,6 @@ class TestTullock(TestPlayer):
320316

321317
def test_strategy(self):
322318
"""Cooperates for first ten rounds"""
323-
324319
actions = [(C, C), (C, D)] * 5
325320
self.versus_test(axelrod.Alternator(), expected_actions=actions)
326321

@@ -364,7 +359,6 @@ class TestUnnamedStrategy(TestPlayer):
364359
}
365360

366361
def test_strategy(self):
367-
368362
actions = [(D, C), (C, C), (C, C), (D, C), (C, C), (C, C)]
369363
self.versus_test(axelrod.Cooperator(), expected_actions=actions, seed=1)
370364

@@ -397,7 +391,6 @@ def test_init(self):
397391
self.assertIsNone(player.opponent_is_random)
398392

399393
def test_strategy(self):
400-
401394
# Our Player (SteinAndRapoport) vs Cooperator
402395
# After 15th round (pvalue < alpha) still plays titfortat
403396
# Note it always defects on the last two rounds

axelrod/tests/strategies/test_axelrod_second.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class TestChampion(TestPlayer):
2222
}
2323

2424
def test_strategy(self):
25-
2625
# Cooperates for num_rounds / 20 (10 by default)
2726

2827
actions = [(C, C), (C, D)] * 5 # Cooperate for ten rounds
@@ -103,7 +102,6 @@ class TestTester(TestPlayer):
103102
}
104103

105104
def test_strategy(self):
106-
107105
# Alternate after 3rd round if opponent only cooperates
108106
actions = [(D, C)] + [(C, C), (C, C)] + [(D, C), (C, C)] * 4
109107
self.versus_test(axelrod.Cooperator(), expected_actions=actions,

axelrod/tests/strategies/test_better_and_better.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class TestBetterAndBetter(TestPlayer):
2222

2323
def test_strategy(self):
2424
"""Tests that the strategy gives expected behaviour."""
25-
2625
self.versus_test(axelrod.Defector(),
2726
expected_actions=[(D, D), (D, D), (D, D), (D, D),
2827
(C, D), (D, D), (D, D), (D, D),

axelrod/tests/strategies/test_dbs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ class TestDBS(TestPlayer):
221221
}
222222

223223
def test_strategy(self):
224-
225224
default_init_kwargs = {
226225
'discount_factor':.75, 'promotion_threshold':3,
227226
'violation_threshold':4, 'reject_threshold':4,

axelrod/tests/strategies/test_finite_state_machines.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ class TestPun1(TestFSMPlayer):
373373
"""
374374

375375
def test_strategy(self):
376-
377376
state_and_actions = [(1, C), (2, D), (1, D), (2, D)] * 3
378377
self.transitions_test(state_and_actions)
379378

@@ -406,7 +405,6 @@ class TestRaider(TestFSMPlayer):
406405
"""
407406

408407
def test_strategy(self):
409-
410408
state_and_actions = [(0, C), (2, C), (0, D), (2, C)] * 3
411409
self.transitions_test(state_and_actions)
412410

@@ -443,7 +441,6 @@ class TestRipoff(TestFSMPlayer):
443441
"""
444442

445443
def test_strategy(self):
446-
447444
state_and_actions = [(1, C), (2, C)] * 3 + [(1, D)] + [(3, C), (3, D)] * 5
448445
self.transitions_test(state_and_actions)
449446

@@ -515,7 +512,6 @@ class TestSolutionB5(TestFSMPlayer):
515512
"""
516513

517514
def test_strategy(self):
518-
519515
state_and_actions = ([(1, C)] + [(2, C)] * 3 + [(2, D), (3, D)]) * 2
520516
self.transitions_test(state_and_actions)
521517

@@ -584,7 +580,6 @@ class TestEvolvedFSM4(TestFSMPlayer):
584580
"""
585581

586582
def test_strategy(self):
587-
588583
state_and_actions = [(0, C)] * 3 + [(0, D), (2, C), (2, D), (1, D)] * 3
589584
self.transitions_test(state_and_actions)
590585

@@ -644,7 +639,6 @@ class TestEvolvedFSM16(TestFSMPlayer):
644639
"""
645640

646641
def test_strategy(self):
647-
648642
# finished: 0,
649643
state_and_actions = [(0, C)] * 3 + [(0, D)] + [(12, D), (11, D), (5, C)] * 3
650644
self.transitions_test(state_and_actions)
@@ -735,7 +729,6 @@ class TestEvolvedFSM16Noise05(TestFSMPlayer):
735729
"""
736730

737731
def test_strategy(self):
738-
739732
# finished: 12, 13
740733
state_and_actions = [(0, C), (8, C), (2, C), (12, D), (2, C), (12, C),
741734
(13, C), (13, C), (13, D)] + [(6, D)] * 3

0 commit comments

Comments
 (0)