diff --git a/exercises/connect/connect_test.py b/exercises/connect/connect_test.py index 28f23ec0291..2fc333706bc 100644 --- a/exercises/connect/connect_test.py +++ b/exercises/connect/connect_test.py @@ -100,16 +100,16 @@ ] -class SieveTest(unittest.TestCase): +class ConnectTest(unittest.TestCase): def test_game(self): - for t in testcases: - game = ConnectGame(t["board"]) + for testcase in testcases: + game = connect.ConnectGame(testcase["board"]) winner = game.get_winner() - expected = t["winner"] if t["winner"] else "None" + expected = testcase["winner"] if testcase["winner"] else "None" got = winner if winner else "None" - self.assertEqual(winner, t["winner"], + self.assertEqual(winner, testcase["winner"], "Test failed: %s, expected winner: %s, got: %s" - % (t["description"], expected, got)) + % (testcase["description"], expected, got)) if __name__ == '__main__':