~barry/mailman/work1

« back to all changes in this revision

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

  • Committer: Barry Warsaw
  • Date: 2014-01-05 21:21:10 UTC
  • Revision ID: barry@list.org-20140105212110-y39xuab7cnu2kr83
checkpointing

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
    def test_patch_nonexistent_member(self):
181
181
        # /members/<missing> PATCH returns 404
182
182
        with self.assertRaises(HTTPError) as cm:
183
 
            call_api('http://localhost:9001/3.0/members/801', method='PATCH')
 
183
            call_api('http://localhost:9001/3.0/members/801',
 
184
                     {}, method='PATCH')
184
185
        self.assertEqual(cm.exception.code, 404)
185
186
 
186
187
    def test_patch_member_bogus_attribute(self):