@@ -0,0 +1,434 @@
+from mock import patch%0Afrom StringIO import StringIO%0A%0Afrom geotrek.celery import debug_task%0A%0Afrom django.test.testcases import TestCase%0A%0A%0Aclass CeleryTests(TestCase):%0A    @patch('sys.stdout', new_callable=StringIO)%0A    def test_debug_task(self, mocked_stdout):%0A        task = debug_task.s().apply(logfile='test_logfile')%0A        self.assertEqual(task.status, 'SUCCESS')%0A        self.assertIn('test_logfile', mocked_stdout.getvalue())%0A

Add test global