'Create multiple courses within the same org.  Verify that someone with org-wide permissions can access
all of them.'

@ddt.data(OrgStaffRole('AwesomeOrg'), OrgInstructorRole('AwesomeOrg'))
def test_course_listing_org_permissions(self, role):

    org_course_one = self.store.make_course_key('AwesomeOrg', 'Course1', 'RunBabyRun')
    CourseFactory.create(org=org_course_one.org, number=org_course_one.course, run=org_course_one.run)
    org_course_two = self.store.make_course_key('AwesomeOrg', 'Course2', 'RunBabyRun')
    CourseFactory.create(org=org_course_two.org, number=org_course_two.course, run=org_course_two.run)
    role.add_users(self.user)
    with self.assertRaises(AccessListFallback):
        _accessible_courses_list_from_groups(self.request)
    (courses_list, __) = get_courses_accessible_to_user(self.request)
    self.assertEqual(len(list(courses_list)), 2)
    self.assertTrue(all((isinstance(course, CourseSummary) for course in courses_list)))
