diff options
| author | Aurélien Bompard | 2013-10-11 17:40:39 +0200 |
|---|---|---|
| committer | Aurélien Bompard | 2013-10-11 17:40:39 +0200 |
| commit | 000a025d0d649353908ac0290cf46c1479233489 (patch) | |
| tree | a28d28a41ac78753abccd6eb88c103f87d0f27cd /src | |
| parent | 8e6cad997c026cfa81e23043531a2a0ac8c1c6a0 (diff) | |
| download | mailman-000a025d0d649353908ac0290cf46c1479233489.tar.gz mailman-000a025d0d649353908ac0290cf46c1479233489.tar.zst mailman-000a025d0d649353908ac0290cf46c1479233489.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/utilities/importer.py | 1 | ||||
| -rw-r--r-- | src/mailman/utilities/tests/test_import.py | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/utilities/importer.py b/src/mailman/utilities/importer.py index 9eb0fdf35..03ac94870 100644 --- a/src/mailman/utilities/importer.py +++ b/src/mailman/utilities/importer.py @@ -175,7 +175,6 @@ TYPES = dict( # Attribute names in Mailman 2 which are renamed in Mailman 3. NAME_MAPPINGS = dict( - host_name='mail_host', include_list_post_header='allow_list_posts', real_name='display_name', last_post_time='last_post_at', diff --git a/src/mailman/utilities/tests/test_import.py b/src/mailman/utilities/tests/test_import.py index 23cf74b36..76c8174d5 100644 --- a/src/mailman/utilities/tests/test_import.py +++ b/src/mailman/utilities/tests/test_import.py @@ -77,11 +77,12 @@ class TestBasicImport(unittest.TestCase): self._import() self.assertEqual(self._mlist.display_name, 'Test') - def test_mail_host(self): - # The mlist.mail_host gets set. + def test_mail_host_invariant(self): + # The mlist.mail_host must not be updated when importing (it will + # change the list_id property, which is supposed to be read-only) self.assertEqual(self._mlist.mail_host, 'example.com') self._import() - self.assertEqual(self._mlist.mail_host, 'heresy.example.org') + self.assertEqual(self._mlist.mail_host, 'example.com') def test_rfc2369_headers(self): self._mlist.allow_list_posts = False |
