diff options
| author | Barry Warsaw | 2016-01-11 22:52:33 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-01-11 22:52:33 -0500 |
| commit | 03bb57c8c2a47a08e19b20975622ebb2ef2b81c6 (patch) | |
| tree | 332bf1e5e36da0a3cb4271b1a471a62865071a62 /src/mailman/config/tests/test_configuration.py | |
| parent | 58ee14bfb1c1c24d06fb0509e42e06e37a505479 (diff) | |
| download | mailman-03bb57c8c2a47a08e19b20975622ebb2ef2b81c6.tar.gz mailman-03bb57c8c2a47a08e19b20975622ebb2ef2b81c6.tar.zst mailman-03bb57c8c2a47a08e19b20975622ebb2ef2b81c6.zip | |
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): |
