response_cleaner will now ship as a staticmethod instead of being passed in.

pull/730/head
jMyles 2019-02-04 23:21:50 -05:00
parent 3253dd9c75
commit 144daf4f1e
1 changed files with 5 additions and 2 deletions

View File

@ -21,8 +21,11 @@ from nucypher.utilities.sandbox.constants import MOCK_KNOWN_URSULAS_CACHE
class _TestMiddlewareClient(NucypherMiddlewareClient):
def node_selector(self, node):
assert False
@staticmethod
def response_cleaner(response):
response.content = response.data
return response
def _get_mock_client_by_ursula(self, ursula):
port = ursula.rest_information()[0].port