6 from m_librarian import config, download
9 class TestFormat(unittest.TestCase):
10 def test_compile_format(self):
11 config.get_config().set('download', 'format', '%a/%s/%n %t')
12 download._compile_format()
13 self.assertEqual(download.compiled_format,
14 u'%(author)s/%(series)s/%(ser_no)d %(title)s')
17 if __name__ == "__main__":