'Test that the request cache is cleared after a task is run.'

@override_settings(CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION=True)
def test_clear_cache_celery(self):

    self._dummy_task.apply(args=(self,)).get()
    self.assertEqual(modulestore().request_cache.data, {})
