aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pygments_api/tests.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-03-10 08:12:50 +0000
committertom christie tom@tomchristie.com2011-03-10 08:12:50 +0000
commit9ed34be76629c87adc3995d4e225b0120a80a4ab (patch)
treebd20683aae279c72bde6368da3dcdfe08d1ca5c2 /examples/pygments_api/tests.py
parentc25f8f8427da13a969afab700aebb00d87d60838 (diff)
parentf7f001542a06f1fa816953779684f6b62d6e3908 (diff)
downloaddjango-rest-framework-9ed34be76629c87adc3995d4e225b0120a80a4ab.tar.bz2
markos pygments tests
Diffstat (limited to 'examples/pygments_api/tests.py')
-rw-r--r--examples/pygments_api/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/pygments_api/tests.py b/examples/pygments_api/tests.py
index f70eff0e..76f1afba 100644
--- a/examples/pygments_api/tests.py
+++ b/examples/pygments_api/tests.py
@@ -1,7 +1,7 @@
from django.test import TestCase
from djangorestframework.compat import RequestFactory
from pygments_api import views
-import os, tempfile, shutil
+import os, tempfile, shutil, time, json
class TestPygmentsExample(TestCase):
@@ -35,7 +35,8 @@ class TestPygmentsExample(TestCase):
request = self.factory.get('/pygments')
view = views.PygmentsRoot.as_view()
response = view(request)
- self.assertEquals(locations, response.content)
+ response_locations = json.loads(response.content)
+ self.assertEquals(locations, response_locations)
\ No newline at end of file