'Use ajax interface to request html for a problem.'

def render_problem(self, username, problem_url_name):

    self.login_username(username)
    modx_url = reverse('xblock_handler', kwargs={'course_id': self.course.id.to_deprecated_string(), 'usage_id': quote_slashes(InstructorTaskModuleTestCase.problem_location(problem_url_name).to_deprecated_string()), 'handler': 'xmodule_handler', 'suffix': 'problem_get'})
    resp = self.client.post(modx_url, {})
    return resp
