X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2Ftest_format.py;h=8dc1a2294f79523c0d8970f82b1b4aba273a4097;hb=8d0cd0faf04cf7a988b77d6fe2a4285444a2f3ea;hp=9d52fb905e5f673b81ef286939b8f083b314e409;hpb=f500438f9ec07d6242b6f5c06125a6df7d696919;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')