]> git.phdru.name Git - m_librarian.git/blobdiff - tests/test_format.py
Pass format of the downloaded file name in the command line
[m_librarian.git] / tests / test_format.py
index 9d52fb905e5f673b81ef286939b8f083b314e409..8dc1a2294f79523c0d8970f82b1b4aba273a4097 100755 (executable)
@@ -9,8 +9,8 @@ from m_librarian import config, download
 class TestFormat(unittest.TestCase):
     def test_compile_format(self):
         config.get_config().set('download', 'format', '%a/%s/%n %t')
-        download._do_compile_format()
-        self.assertEqual(download._compiled_format,
+        download._compile_format()
+        self.assertEqual(download.compiled_format,
                          u'%(author)s/%(series)s/%(ser_no)d %(title)s')