Example #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
Example #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
Example #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