summaryrefslogtreecommitdiff
path: root/src/mailman/model/tests/test_address.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 11:01:46 -0400
committerBarry Warsaw2016-03-25 11:01:46 -0400
commit7fd9e5ab09b0da347da0607b47d2d3838bd80f0c (patch)
treeb150f85e5fc482f45e973a233b5184d3ca4b78a7 /src/mailman/model/tests/test_address.py
parent71ebe367a52316811f570d09f2213c192a47973f (diff)
downloadmailman-7fd9e5ab09b0da347da0607b47d2d3838bd80f0c.tar.gz
mailman-7fd9e5ab09b0da347da0607b47d2d3838bd80f0c.tar.zst
mailman-7fd9e5ab09b0da347da0607b47d2d3838bd80f0c.zip
Diffstat (limited to 'src/mailman/model/tests/test_address.py')
-rw-r--r--src/mailman/model/tests/test_address.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mailman/model/tests/test_address.py b/src/mailman/model/tests/test_address.py
index 2ed74360b..896310796 100644
--- a/src/mailman/model/tests/test_address.py
+++ b/src/mailman/model/tests/test_address.py
@@ -17,11 +17,6 @@
"""Test addresses."""
-__all__ = [
- 'TestAddress',
- ]
-
-
import unittest
from mailman.email.validate import InvalidEmailAddressError
@@ -32,7 +27,6 @@ from mailman.testing.layers import ConfigLayer
from zope.component import getUtility
-
class TestAddress(unittest.TestCase):
"""Test addresses."""
@@ -43,8 +37,8 @@ class TestAddress(unittest.TestCase):
self._address = self._usermgr.create_address('FPERSON@example.com')
def test_invalid_email_string_raises_exception(self):
- with self.assertRaises(InvalidEmailAddressError):
- Address('not_a_valid_email_string', '')
+ self.assertRaises(InvalidEmailAddressError,
+ Address, 'not_a_valid_email_string', '')
def test_local_part_differs_only_by_case(self):
with self.assertRaises(ExistingAddressError) as cm: