fix unittest for werkzeug==0.8

This commit is contained in:
Martin Zimmermann 2013-11-18 12:40:27 +01:00
parent c2a0331dbd
commit b3d6215d2b

View File

@ -2,10 +2,10 @@
import unittest
import os
import json
import tempfile
from werkzeug import __version__
from werkzeug.test import Client
from werkzeug.wrappers import Response
@ -15,6 +15,12 @@ from isso.utils import http
from fixtures import curl, FakeIP
http.curl = curl
if __version__.startswith("0.8"):
class Response(Response):
def get_data(self, as_text=False):
return self.data.decode("utf-8")
class TestGuard(unittest.TestCase):