diff options
| author | Barry Warsaw | 2016-02-27 14:40:06 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-02-27 14:40:06 -0500 |
| commit | cd61fcc88245af25bda231710cbbe1eb75a5e0e4 (patch) | |
| tree | d45dd282508400183c352ac239d984358af12ac8 /src/mailman/utilities/tests | |
| parent | a763e9634ce5dacc4a5079271d14e8fb4b71235c (diff) | |
| download | mailman-cd61fcc88245af25bda231710cbbe1eb75a5e0e4.tar.gz mailman-cd61fcc88245af25bda231710cbbe1eb75a5e0e4.tar.zst mailman-cd61fcc88245af25bda231710cbbe1eb75a5e0e4.zip | |
Diffstat (limited to 'src/mailman/utilities/tests')
| -rw-r--r-- | src/mailman/utilities/tests/test_templates.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/utilities/tests/test_templates.py b/src/mailman/utilities/tests/test_templates.py index 8697699ab..f4b581b90 100644 --- a/src/mailman/utilities/tests/test_templates.py +++ b/src/mailman/utilities/tests/test_templates.py @@ -88,18 +88,22 @@ class TestSearchOrder(unittest.TestCase): def nexteq(path): self.assertEqual(next(search_order), path) # 1: Use the given language argument + nexteq('/v/templates/lists/l.example.com/it/foo.txt') nexteq('/v/templates/lists/l@example.com/it/foo.txt') nexteq('/v/templates/domains/example.com/it/foo.txt') nexteq('/v/templates/site/it/foo.txt') # 2: Use mlist.preferred_language + nexteq('/v/templates/lists/l.example.com/de/foo.txt') nexteq('/v/templates/lists/l@example.com/de/foo.txt') nexteq('/v/templates/domains/example.com/de/foo.txt') nexteq('/v/templates/site/de/foo.txt') # 3: Use the site's default language + nexteq('/v/templates/lists/l.example.com/fr/foo.txt') nexteq('/v/templates/lists/l@example.com/fr/foo.txt') nexteq('/v/templates/domains/example.com/fr/foo.txt') nexteq('/v/templates/site/fr/foo.txt') # 4: English + nexteq('/v/templates/lists/l.example.com/en/foo.txt') nexteq('/v/templates/lists/l@example.com/en/foo.txt') nexteq('/v/templates/domains/example.com/en/foo.txt') nexteq('/v/templates/site/en/foo.txt') @@ -114,14 +118,17 @@ class TestSearchOrder(unittest.TestCase): def nexteq(path): self.assertEqual(next(search_order), path) # 1: Use mlist.preferred_language + nexteq('/v/templates/lists/l.example.com/de/foo.txt') nexteq('/v/templates/lists/l@example.com/de/foo.txt') nexteq('/v/templates/domains/example.com/de/foo.txt') nexteq('/v/templates/site/de/foo.txt') # 2: Use the site's default language + nexteq('/v/templates/lists/l.example.com/fr/foo.txt') nexteq('/v/templates/lists/l@example.com/fr/foo.txt') nexteq('/v/templates/domains/example.com/fr/foo.txt') nexteq('/v/templates/site/fr/foo.txt') # 3: English + nexteq('/v/templates/lists/l.example.com/en/foo.txt') nexteq('/v/templates/lists/l@example.com/en/foo.txt') nexteq('/v/templates/domains/example.com/en/foo.txt') nexteq('/v/templates/site/en/foo.txt') |
