diff options
| author | Barry Warsaw | 2012-04-08 19:41:40 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-04-08 19:41:40 -0400 |
| commit | cd3f84b301c2150fea5402129a2e7bc862fbb52b (patch) | |
| tree | c69db8a119143cb8ed8e25e46c41164b30413bc9 /src/mailman/database/tests/test_migrations.py | |
| parent | fdfc98239de2cfdfff6c62a5bb9d49abc8d3722e (diff) | |
| download | mailman-cd3f84b301c2150fea5402129a2e7bc862fbb52b.tar.gz mailman-cd3f84b301c2150fea5402129a2e7bc862fbb52b.tar.zst mailman-cd3f84b301c2150fea5402129a2e7bc862fbb52b.zip | |
Diffstat (limited to 'src/mailman/database/tests/test_migrations.py')
| -rw-r--r-- | src/mailman/database/tests/test_migrations.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/database/tests/test_migrations.py b/src/mailman/database/tests/test_migrations.py index 5333083f2..bf3decc88 100644 --- a/src/mailman/database/tests/test_migrations.py +++ b/src/mailman/database/tests/test_migrations.py @@ -108,6 +108,13 @@ class TestMigration20120407(unittest.TestCase): database.initialize() # Load all the database SQL to just before ours. database.load_migrations('20120406999999') + # Populate the test database with a domain and a mailing list. + with temporary_db(database): + getUtility(IDomainManager).add( + 'example.com', 'An example domain.', + 'http://lists.example.com', 'postmaster@example.com') + mlist = create_list('test@example.com') + del mlist database.commit() # Load all migrations, up to and including this one. database.load_migrations('20120407000000') |
