Fix tests and remove debug logging

This commit is contained in:
Erik Johnston 2014-12-12 15:08:29 +00:00
parent 7b43a503f3
commit 1fc2a0e33e
2 changed files with 7 additions and 6 deletions

View file

@ -29,7 +29,7 @@ from twisted.enterprise.adbapi import ConnectionPool
from collections import namedtuple
from mock import patch, Mock
import json
import urllib
import urlparse
from inspect import getcallargs
@ -103,9 +103,14 @@ class MockHttpResource(HttpServer):
matcher = pattern.match(path)
if matcher:
try:
args = [
urllib.unquote(u).decode("UTF-8")
for u in matcher.groups()
]
(code, response) = yield func(
mock_request,
*matcher.groups()
*args
)
defer.returnValue((code, response))
except CodeMessageException as e: