diff options
| author | Barry Warsaw | 2012-03-14 13:08:03 -0700 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-14 13:08:03 -0700 |
| commit | c370da781692c42881c02b64b778a908bf35dce9 (patch) | |
| tree | e64046dfe853c81930f32f4c603bc310bf405034 /src | |
| parent | d8f6ee3844e8fc7e14f8fcf12994d92028b1854c (diff) | |
| download | mailman-c370da781692c42881c02b64b778a908bf35dce9.tar.gz mailman-c370da781692c42881c02b64b778a908bf35dce9.tar.zst mailman-c370da781692c42881c02b64b778a908bf35dce9.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/archiving/tests/test_prototype.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mailman/archiving/tests/test_prototype.py b/src/mailman/archiving/tests/test_prototype.py index 9c229db1c..969043aa4 100644 --- a/src/mailman/archiving/tests/test_prototype.py +++ b/src/mailman/archiving/tests/test_prototype.py @@ -106,8 +106,11 @@ but the water deserves to be swum. # Check that the directory structure has been created and we have one # more file (the archived message) than expected directories. archived_messages = all_filenames - self._expected_dir_structure - self.assertEqual(self._expected_dir_structure, - all_filenames - archived_messages) + self.assertEqual(len(archived_messages), 1) + self.assertTrue( + archived_messages.pop().startswith( + os.path.join(config.ARCHIVE_DIR, 'prototype', + self._mlist.fqdn_listname, 'new'))) def test_archive_maildir_existence_does_not_raise(self): # Archiving a second message does not cause an EEXIST to be raised |
