Test updates suggested by glange
This commit is contained in:
@@ -160,9 +160,9 @@ class TestAuth(unittest.TestCase):
|
||||
self.assertEquals(ath.default_swift_cluster,
|
||||
'local:http://host/path')
|
||||
ath = auth.filter_factory({'super_admin_key': 'supertest',
|
||||
'default_swift_cluster': 'local:http://host/path/'})(app)
|
||||
'default_swift_cluster': 'local:https://host/path/'})(app)
|
||||
self.assertEquals(ath.default_swift_cluster,
|
||||
'local:http://host/path')
|
||||
'local:https://host/path')
|
||||
|
||||
def test_top_level_ignore(self):
|
||||
resp = Request.blank('/').get_response(self.test_auth)
|
||||
@@ -455,7 +455,6 @@ class TestAuth(unittest.TestCase):
|
||||
req = Request.blank('/v1/AUTH_new', environ={'REQUEST_METHOD': 'PUT'})
|
||||
req.remote_user = 'act:usr,act,.super_admin'
|
||||
resp = self.test_auth.authorize(req)
|
||||
resp = self.test_auth.authorize(req)
|
||||
self.assertEquals(resp.status_int, 403)
|
||||
|
||||
def test_account_delete_permissions(self):
|
||||
|
||||
Reference in New Issue
Block a user