'Creates a InstructorTask entry for testing.'

def _create_entry(self, task_state=QUEUING, task_output=None, student=None):

    task_id = str(uuid4())
    progress_json = (json.dumps(task_output) if (task_output is not None) else None)
    (task_input, task_key) = encode_problem_and_student_input(self.problem_url, student)
    instructor_task = InstructorTaskFactory.create(course_id=TEST_COURSE_KEY, requester=self.instructor, task_input=json.dumps(task_input), task_key=task_key, task_id=task_id, task_state=task_state, task_output=progress_json)
    return instructor_task
