Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 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
Пример #6
0
 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