'Set up the course and user context'

def setUp(self):

    super(ModuleRenderTestCase, self).setUp()
    self.mock_user = UserFactory()
    self.mock_user.id = 1
    self.request_factory = RequestFactory()
    self.mock_module = MagicMock()
    self.mock_module.id = 1
    self.dispatch = 'score_update'
    self.callback_url = reverse('xqueue_callback', kwargs=dict(course_id=self.course_key.to_deprecated_string(), userid=str(self.mock_user.id), mod_id=self.mock_module.id, dispatch=self.dispatch))
