'Test retrieval of course runs.'

def test_get_course_runs(self, mock_get_edx_api_data):

    catalog_course_runs = CourseRunFactory.create_batch(10)
    mock_get_edx_api_data.return_value = catalog_course_runs
    data = get_course_runs()
    self.assertTrue(mock_get_edx_api_data.called)
    self.assert_contract(mock_get_edx_api_data.call_args)
    self.assertEqual(data, catalog_course_runs)
