'Test that `get_course_summaries` method in modulestore work as expected.'

@ddt.data(ModuleStoreEnum.Branch.draft_preferred, ModuleStoreEnum.Branch.published_only)
def test_course_summaries(self, branch):

    with self.store.branch_setting(branch_setting=branch):
        course_summaries = self.store.get_course_summaries()
        self.assertEqual(len(course_summaries), 1)
        self.assertCourseSummaryFields(course_summaries)
        self.assertTrue(all((isinstance(course, CourseSummary) for course in course_summaries)))
