'Make a course with an enrolled logged-in student.'

def make_course(self, **kwargs):

    self.course = CourseFactory.create(**kwargs)
    user = UserFactory.create()
    CourseEnrollmentFactory.create(user=user, course_id=self.course.id)
    self.client.login(username=user.username, password='test')
