updated test to include request method
This commit is contained in:
parent
3d112ecfdb
commit
411bc0b9e2
@ -2045,8 +2045,8 @@ class TestObjectController(unittest.TestCase):
|
|||||||
proxy_server.http_connect = fake_http_connect(201, 201, 201, 201)
|
proxy_server.http_connect = fake_http_connect(201, 201, 201, 201)
|
||||||
controller = proxy_server.ObjectController(self.app, 'account',
|
controller = proxy_server.ObjectController(self.app, 'account',
|
||||||
'container', 'object')
|
'container', 'object')
|
||||||
req = Request.blank('/a/c/o', {}, headers={
|
req = Request.blank('/a/c/o', environ={'REQUEST_METHOD': 'COPY'},
|
||||||
'Transfer-Encoding': 'chunked',
|
headers={'Transfer-Encoding': 'chunked',
|
||||||
'Content-Type': 'foo/bar'})
|
'Content-Type': 'foo/bar'})
|
||||||
|
|
||||||
req.body_file = ChunkedFile(10)
|
req.body_file = ChunkedFile(10)
|
||||||
@ -2058,8 +2058,8 @@ class TestObjectController(unittest.TestCase):
|
|||||||
# test 413 entity to large
|
# test 413 entity to large
|
||||||
from swift.proxy import server
|
from swift.proxy import server
|
||||||
proxy_server.http_connect = fake_http_connect(201, 201, 201, 201)
|
proxy_server.http_connect = fake_http_connect(201, 201, 201, 201)
|
||||||
req = Request.blank('/a/c/o', {}, headers={
|
req = Request.blank('/a/c/o', environ={'REQUEST_METHOD': 'COPY'},
|
||||||
'Transfer-Encoding': 'chunked',
|
headers={'Transfer-Encoding': 'chunked',
|
||||||
'Content-Type': 'foo/bar'})
|
'Content-Type': 'foo/bar'})
|
||||||
req.body_file = ChunkedFile(11)
|
req.body_file = ChunkedFile(11)
|
||||||
self.app.memcache.store = {}
|
self.app.memcache.store = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user