Changeset 6:2a0f6f8cbc52 in mailjam for postman/tests
- Timestamp:
- May 18, 2012, 12:59:55 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postman/tests/daemon.py
r5 r6 1 1 # -*- coding: utf-8 -*- 2 2 3 import os 3 import os, xmlrpclib 4 4 from unittest import TestCase 5 5 from postman.daemon import Postman … … 121 121 # Clear the files created by the tests 122 122 postman.clear() 123 124 125 class TestPostmanDaemon(TestCase): 126 """ 127 postman.daemon.PostmanDaemon tests. 128 129 """ 130 def setUp(self): 131 config = {'private': False, 'archive': '/tmp/postman-tests/archive', 132 'storage': '/tmp/postman-tests/storage'} 133 self.mailing_list = MailingList('test_xmlrpc', 'test_xmlrpc@example.com', 134 members={}, config=config) 135 self.member = Member('test@example.com') 136 # FIXME: Hardcoded url here, should be picked from a config file 137 138 self.link = xmlrpclib.ServerProxy('http://localhost:9000')
Note:
See TracChangeset
for help on using the changeset viewer.