summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mailman/utilities/tests/test_import.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mailman/utilities/tests/test_import.py b/src/mailman/utilities/tests/test_import.py
index 4f4780339..9269c06f5 100644
--- a/src/mailman/utilities/tests/test_import.py
+++ b/src/mailman/utilities/tests/test_import.py
@@ -56,6 +56,19 @@ class TestBasicImport(unittest.TestCase):
self._import()
self.assertEqual(self._mlist.real_name, 'Test')
+ def test_host_name(self):
+ # The mlist.host_name gets set.
+ self.assertEqual(self._mlist.host_name, 'example.com')
+ self._import()
+ self.assertEqual(self._mlist.host_name, 'heresy.example.org')
+
+ def test_rfc2369_headers(self):
+ self._mlist.include_list_post_header = False
+ self._mlist.include_rfc2369_headers = False
+ self._import()
+ self.assertTrue(self._mlist.include_list_post_header)
+ self.assertTrue(self._mlist.include_rfc2369_headers)
+
def test_suite():