~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/mailman/bin/tests/test_master.py

  • Committer: Barry Warsaw
  • Date: 2014-11-01 16:49:15 UTC
  • mfrom: (7251.1.38 abhilash)
  • Revision ID: barry@list.org-20141101164915-06wqfmya6wf47n6n
Database
--------
 * The ORM layer, previously implemented with Storm, has been replaced by
   SQLAlchemy, thanks to the fantastic work by Abhilash Raj and Aurélien
   Bompard.  Alembic is now used for all database schema migrations.
 * The new logger `mailman.database` logs any errors at the database layer.

API
---
 * Several changes to the internal API:
   - `IListManager.mailing_lists` is guaranteed to be sorted in List-ID order.
   - `IDomains.mailing_lists` is guaranteed to be sorted in List-ID order.
   - Iteration over domains via the `IDomainManager` is guaranteed to be sorted
     by `IDomain.mail_host` order.
   - `ITemporaryDatabase` interface and all implementations are removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
__metaclass__ = type
23
23
__all__ = [
 
24
    'TestMasterLock',
24
25
    ]
25
26
 
26
27
 
30
31
import unittest
31
32
 
32
33
from flufl.lock import Lock
33
 
 
34
34
from mailman.bin import master
35
35
 
36
36
 
55
55
        lock = master.acquire_lock_1(False, self.lock_file)
56
56
        is_locked = lock.is_locked
57
57
        lock.unlock()
58
 
        self.failUnless(is_locked)
 
58
        self.assertTrue(is_locked)
59
59
 
60
60
    def test_master_state(self):
61
61
        my_lock = Lock(self.lock_file)