Changeset 5:573fdae8b1f6 in mailjam for postman/tests/mta.py


Ignore:
Timestamp:
May 16, 2012, 11:41:47 AM (13 years ago)
Author:
Francisco de Borja Lopez Rio <borja@…>
Branch:
default
Phase:
public
Message:

Added tests for postman.daemon.Postman

Added a method to postman.daemon.Postman to "clear" all the storage associated
to a given postman instance (removing all the files from disk)

Fixed some bugs, mostly caused by typos through the sources, detected while
writing more tests

Removed the storage and archive attributes from postman.models.MailingList,
now they are methods "marked" as properties using the @property decorator.
This keeps the storage objects from being serialized into json objects by
the storage backend (de-serializing them caused some trouble and it is not
necessary at all)

Added create() and delete() methods to postman.storage.JsonStorage. the first
one ensures the path to the storage file exists (creating all subdirs if
necessary) and the second one deletes the storage file from disk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postman/tests/mta.py

    r2 r5  
    33import os, sys
    44from unittest import TestCase
    5 
     5from postman.mta import Sendmail
    66from postman.models import Member, MailingList
    7 from postman.mta import Sendmail
    87
    98
Note: See TracChangeset for help on using the changeset viewer.