]> git.phdru.name Git - m_librarian.git/blob - tests/test_format.py
Feat(db): Add book.author1 property
[m_librarian.git] / tests / test_format.py
1
2 import os
3 from m_librarian import download
4 from m_librarian.config import get_config
5
6
7 def test_compile_format():
8     config_path = os.path.join(
9         os.path.dirname(__file__), 'test_config.conf')
10     get_config(config_path)
11     ml_conf = get_config()
12     ml_conf.set('download', 'format', '%a/%s/%n %t')
13     download._compile_format()
14     assert download.compiled_format == \
15         u'%(author1)s/%(series)s/%(ser_no)d %(title)s'