3 from m_librarian import download
4 from m_librarian.config import get_config
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'