'Create course page and courses to find'

def setUp(self):

    with open(self.TEST_INDEX_FILENAME, 'w+') as index_file:
        json.dump({}, index_file)
    self.addCleanup(remove_file, self.TEST_INDEX_FILENAME)
    super(CourseDiscoveryTest, self).setUp()
    self.page = CourseDiscoveryPage(self.browser)
    for i in range(12):
        org = 'test_org'
        number = '{}{}'.format(str(i), str(uuid.uuid4().get_hex().upper()[0:6]))
        run = 'test_run'
        name = ('test    course' if (i < 10) else 'grass    is    always    greener')
        settings = {'enrollment_start': datetime.datetime(1970, 1, 1).isoformat()}
        CourseFixture(org, number, run, name, settings=settings).install()
