'Tests that the generator creates names based on course_id, base name, and date.'

@ddt.data(CourseLocator, SlashSeparatedCourseKey)
def test_filename_generator(self, course_key_class):

    self.assertEqual(u'foo_bar_baz_file_1974-06-22-010203', course_and_time_based_filename_generator(course_key_class(org='foo', course='bar', run='baz'), 'file'))
    self.assertEqual(u'foo_bar_baz_base_name_\xf8_1974-06-22-010203', course_and_time_based_filename_generator(course_key_class(org='foo', course='bar', run='baz'), '    base`    name    \xc3\xb8    '))
