Commit d93c2f4a authored by Andreas Jung's avatar Andreas Jung

added WEBDAV_SOURCE_PORT=1 to request

parent aef9ace5
......@@ -27,6 +27,7 @@ class TestPUTFactory(unittest.TestCase):
request['BODY'] = 'bar'
request.environ['CONTENT_TYPE'] = 'text/plain'
request.environ['REQUEST_METHOD'] = 'PUT'
request.environ['WEBDAV_SOURCE_PORT'] = 1
request._auth = auth_info
except:
self.tearDown()
......@@ -75,6 +76,7 @@ class TestPUTFactory(unittest.TestCase):
addDTMLMethod(self.app, 'a', file='I am file a')
manage_addFolder(self.app.A, 'B')
request = self.app.REQUEST
import pdb; pdb.set_trace()
# this should create 'a' within /A/B containing 'bar'
put = request.traverse('/A/B/a')
put(request, request.RESPONSE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment