def test_basic_functions(self): meta = Metadata() meta.file_name = 'foo.doc' meta.title = ' ' meta.languages = ['en', 'xx'] assert meta.file_name == 'foo.doc', meta.file_name assert meta.title == 'foo.doc', meta.title assert not len(meta.countries), meta.countries
def test_basic_functions(self): meta = Metadata() meta.file_name = 'foo.doc' meta.title = ' ' meta.languages = ['en', 'xx'] meta.author = 'The Man' assert meta.file_name == 'foo.doc', meta.file_name assert meta.title == 'foo.doc', meta.title assert meta.extension == 'doc', meta.extension assert not len(meta.countries), meta.countries assert meta.author == 'The Man', meta.author
def test_file_names(self): meta = Metadata() meta.file_name = 'Foo Schnasel.doc' assert meta.file_name == 'foo_schnasel.doc', meta.file_name assert meta.file_title == 'Foo Schnasel.doc', meta.file_title
def test_file_names(self): meta = Metadata() meta.file_name = 'Foo Schnasel.doc' assert meta.safe_file_name == 'Foo_Schnasel.doc', meta.safe_file_name assert meta.file_name == 'Foo Schnasel.doc', meta.file_name