~rashi007/mailman/docsfix

« back to all changes in this revision

Viewing changes to src/mailman/rest/tests/test_domains.py

  • Committer: Barry Warsaw
  • Date: 2014-12-01 02:51:03 UTC
  • mto: (7264.4.22 py3)
  • mto: This revision was merged to the branch mainline in revision 7285.
  • Revision ID: barry@list.org-20141201025103-jvkuq92sptrrngiz
Checkpointing.

By using `six` I think I have most of the imports squared away.  There's
probably still uses of `unicode` built-ins that need fixing.

The idea is to first get the test suite running (which it doesn't yet), and
then to fix tests.

There's a bug in lazr.config which requires us to patch it for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
import unittest
29
29
 
30
 
from urllib2 import HTTPError
31
 
from zope.component import getUtility
32
 
 
33
30
from mailman.app.lifecycle import create_list
34
31
from mailman.database.transaction import transaction
35
32
from mailman.interfaces.listmanager import IListManager
36
33
from mailman.testing.helpers import call_api
37
34
from mailman.testing.layers import RESTLayer
 
35
from six.moves.urllib_error import HTTPError
 
36
from zope.component import getUtility
38
37
 
39
38
 
40
39