X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2Ftest_format.py;h=8dc1a2294f79523c0d8970f82b1b4aba273a4097;hb=d9a85ec552d93e4a009f729d09f4452e6b34dac5;hp=9d52fb905e5f673b81ef286939b8f083b314e409;hpb=76fad1db9bf3d812333ca9f65b1ed87c8549cab7;p=m_librarian.git diff --git a/tests/test_format.py b/tests/test_format.py index 9d52fb9..8dc1a22 100755 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -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')