diff options
Diffstat (limited to 'src/mailman/config/tests/test_configuration.py')
| -rw-r--r-- | src/mailman/config/tests/test_configuration.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mailman/config/tests/test_configuration.py b/src/mailman/config/tests/test_configuration.py index 48cf21983..abbfce2c2 100644 --- a/src/mailman/config/tests/test_configuration.py +++ b/src/mailman/config/tests/test_configuration.py @@ -58,6 +58,21 @@ class TestConfiguration(unittest.TestCase): pass self.assertEqual(events, ['first', 'second', 'first']) + def test_config_template_dir_is_source(self): + fd, filename = tempfile.mkstemp() + self.addCleanup(os.remove, filename) + os.close(fd) + with open(filename, 'w') as fp: + print("""\ +[paths.here] +template_dir: :source: +""", file=fp) + config = Configuration() + config.load(filename) + import mailman.templates + self.assertEqual(config.TEMPLATE_DIR, + os.path.dirname(mailman.templates.__file__)) + class TestExternal(unittest.TestCase): |
