def test_strategy(self):
        P1 = axelrod.MindReader()
        P2 = axelrod.Cooperator()
        self.assertEqual(P1.strategy(P2), D)
Helper to get django messages middleware to work for testing.
dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_mindreader.py/TestMindReader.test_strategy--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/patch_message_middleware