def METHOD_NAME(self, expected_pacing_type, self_paced):
    """
    Verify that CourseRunSerializer serializes the course object without enrollment
    start and end dates.
    """
    course = self.setup_course(self_paced)
    instructor, staff = self.setup_course_user_roles(course)
    serializer = CourseRunSerializer(course, context={'request': self.request})
    expected_course_data = self.get_expected_course_data(
        course, None, None, instructor, staff, expected_pacing_type
    )
    assert serializer.data == expected_course_data