summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbhilash Raj2015-04-14 17:29:15 -0400
committerAbhilash Raj2015-04-14 17:29:15 -0400
commitcfbffa2ac1c5b6743705d3cc39d663eb642e7184 (patch)
tree3a00f133e2092bb16b1e8aa2799a02f267a817d2 /src
parentcb250226a2b8d7968c037687cfed9b980acf47bb (diff)
downloadmailman-cfbffa2ac1c5b6743705d3cc39d663eb642e7184.tar.gz
mailman-cfbffa2ac1c5b6743705d3cc39d663eb642e7184.tar.zst
mailman-cfbffa2ac1c5b6743705d3cc39d663eb642e7184.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman/rest/tests/test_domains.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_domains.py b/src/mailman/rest/tests/test_domains.py
index 716ded580..e291d1e59 100644
--- a/src/mailman/rest/tests/test_domains.py
+++ b/src/mailman/rest/tests/test_domains.py
@@ -54,6 +54,14 @@ class TestDomains(unittest.TestCase):
'http://localhost:9001/3.0/domains', data, method="POST")
self.assertEqual(response.status, 201)
+ def test_domain_create_with_single_owner(self):
+ # Creating domain with single owner should not raise InvalidEmailError
+ content, response = call_api('http://localhost:9001/3.0/domains',
+ dict(mail_host='example.in',
+ owner='someperson@example.com'),
+ method='POST')
+ self.assertEqual(response.status, 201)
+
def test_bogus_endpoint_extension(self):
# /domains/<domain>/lists/<anything> is not a valid endpoint.
with self.assertRaises(HTTPError) as cm:
@@ -102,6 +110,7 @@ class TestDomains(unittest.TestCase):
self.assertEqual(cm.exception.code, 404)
+
class TestDomainOwners(unittest.TestCase):
layer = RESTLayer