~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to test/unit/common/middleware/test_tempauth.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, James Page, Chuck Short
  • Date: 2013-08-13 10:37:13 UTC
  • mfrom: (1.2.21)
  • Revision ID: package-import@ubuntu.com-20130813103713-1ctbx4zifyljs2aq
Tags: 1.9.1-0ubuntu1
[ James Page ]
* d/control: Update VCS fields for new branch locations.

[ Chuck Short ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        resp = self.test_auth.authorize(req)
286
286
        self.assertEquals(resp.status_int, 403)
287
287
 
 
288
    def test_authorize_acl_referer_after_user_groups(self):
 
289
        req = self._make_request('/v1/AUTH_cfa/c')
 
290
        req.remote_user = 'act:usr'
 
291
        req.acl = '.r:*,act:usr'
 
292
        self.assertEquals(self.test_auth.authorize(req), None)
 
293
 
288
294
    def test_authorize_acl_referrer_access(self):
289
295
        req = self._make_request('/v1/AUTH_cfa/c')
290
296
        req.remote_user = 'act:usr,act'