'Test getting courses with new access group format e.g. \'instructor_edx.course.run\''

def test_get_course_list(self):

    course_location = self.store.make_course_key('Org1', 'Course1', 'Run1')
    self._create_course_with_access_groups(course_location, self.user)
    (courses_iter, __) = _accessible_courses_iter(self.request)
    courses_list = list(courses_iter)
    self.assertEqual(len(courses_list), 1)
    (courses_summary_list, __) = _accessible_courses_summary_iter(self.request)
    self.assertEqual(len(list(courses_summary_list)), 1)
    (courses_list_by_groups, __) = _accessible_courses_list_from_groups(self.request)
    self.assertEqual(len(courses_list_by_groups), 1)
    self.assertEqual(courses_list, courses_list_by_groups)
