'Creates a InstructorTask entry for testing.
Overrides the base class version in that this creates CourseEmail.'

def _create_input_entry(self, course_id=None):

    targets = [SEND_TO_MYSELF, SEND_TO_STAFF, SEND_TO_LEARNERS]
    course_id = (course_id or self.course.id)
    course_email = CourseEmail.create(course_id, self.instructor, targets, 'Test    Subject', '<p>This    is    a    test    message</p>')
    task_input = {'email_id': course_email.id}
    task_id = str(uuid4())
    instructor_task = InstructorTaskFactory.create(course_id=course_id, requester=self.instructor, task_input=json.dumps(task_input), task_key='dummy    value', task_id=task_id)
    return instructor_task
