'Asserts that the set of course keys in the expected state equal those that are found'

def assertCourseActionStatesEqual(self, expected, found):

    self.assertSetEqual(set((course_action_state.course_key for course_action_state in expected)), set((course_action_state.course_key for course_action_state in found)))
