def METHOD_NAME(self):
    """
    Confirm course state when there is a course run only in the past.
    """
    course = CourseFactory()
    self.create_run_archived_closed(course)
    with self.assertNumQueries(3):
        state = course.state
    self.assertEqual(state, CourseState(6))