def METHOD_NAME(self, expected, found):
    """Asserts that the set of course keys in the expected state equal those that are found"""
    self.assertSetEqual(
        {course_action_state.course_key for course_action_state in expected},
        {course_action_state.course_key for course_action_state in found})