diff options
| author | Barry Warsaw | 2011-04-24 19:35:46 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-04-24 19:35:46 -0400 |
| commit | 3fb495013e82e75ed3ba0fd9675eec1bfdd3df66 (patch) | |
| tree | ea956a0d020d6bead567915f843a84e245dda7ae /src/mailman/rest/tests/test_membership.py | |
| parent | 989267f6edbf55a1109d24c2b5e20051ea6a24a8 (diff) | |
| download | mailman-3fb495013e82e75ed3ba0fd9675eec1bfdd3df66.tar.gz mailman-3fb495013e82e75ed3ba0fd9675eec1bfdd3df66.tar.zst mailman-3fb495013e82e75ed3ba0fd9675eec1bfdd3df66.zip | |
Diffstat (limited to 'src/mailman/rest/tests/test_membership.py')
| -rw-r--r-- | src/mailman/rest/tests/test_membership.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rest/tests/test_membership.py b/src/mailman/rest/tests/test_membership.py index 7f6d5c237..7f5c8fd38 100644 --- a/src/mailman/rest/tests/test_membership.py +++ b/src/mailman/rest/tests/test_membership.py @@ -53,7 +53,7 @@ class TestMembership(unittest.TestCase): # For Python 2.6. call_api('http://localhost:9001/3.0/members', { 'fqdn_listname': 'missing@example.com', - 'address': 'nobody@example.com', + 'subscriber': 'nobody@example.com', }) except HTTPError as exc: self.assertEqual(exc.code, 400) @@ -112,7 +112,7 @@ class TestMembership(unittest.TestCase): # For Python 2.6. call_api('http://localhost:9001/3.0/members', { 'fqdn_listname': 'test@example.com', - 'address': 'anne@example.com', + 'subscriber': 'anne@example.com', }) except HTTPError as exc: self.assertEqual(exc.code, 409) @@ -124,7 +124,7 @@ class TestMembership(unittest.TestCase): try: call_api('http://localhost:9001/3.0/members', { 'fqdn_listname': 'test@example.com', - 'address': 'anne@example.com', + 'subscriber': 'anne@example.com', 'real_name': 'Anne Person', 'delivery_mode': 'invalid-mode', }) @@ -138,7 +138,7 @@ class TestMembership(unittest.TestCase): def test_join_email_contains_slash(self): content, response = call_api('http://localhost:9001/3.0/members', { 'fqdn_listname': 'test@example.com', - 'address': 'hugh/person@example.com', + 'subscriber': 'hugh/person@example.com', 'real_name': 'Hugh Person', }) self.assertEqual(content, None) |
