Commit 45f15f6a authored by Jacek Furmankiewicz's avatar Jacek Furmankiewicz

issue #4: fix to unit test to remove user-agent that varies on every box

parent f1473eb4
......@@ -25,7 +25,6 @@ Feature: Filters
"accept-encoding": "gzip, deflate",
"custom-header": "Custom Header Value",
"host": "127.0.0.1:8083",
"user-agent": "Python-httplib2/0.7.2 (gzip)",
"x-wrap-input": "Input"
}
"""
......
......@@ -28,6 +28,7 @@ class WrapAroundFilter():
implements(IRequestFilter,IResponseFilter)
def filterRequest(self,request):
del(request.received_headers["user-agent"]) # remove this for unit tests, it varies from one box to another
request.received_headers["X-Wrap-Input"] = "Input"
def filterResponse(self,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