Fix tests; fix copy/auth problem

This commit is contained in:
gholt
2010-11-03 14:06:30 -07:00
parent 819bdc3066
commit ce48a3c709
2 changed files with 3 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ class TestObject(unittest.TestCase):
'X-Copy-From': '%s/%s' % (self.container,
self.obj)})
return check_response(conn)
resp = retry(put, use_account=3)
resp = retry(copy, use_account=3)
resp.read()
self.assertEquals(resp.status, 403)
# verify third account can write "obj1" to shared container
@@ -141,7 +141,7 @@ class TestObject(unittest.TestCase):
'X-Copy-From': '%s/%s' % (self.container,
self.obj)})
return check_response(conn)
resp = retry(put, use_account=3)
resp = retry(copy, use_account=3)
resp.read()
self.assertEquals(resp.status, 403)
# clean up "obj1"