aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/renderers.py
diff options
context:
space:
mode:
authorTom Christie2012-09-20 17:44:34 +0100
committerTom Christie2012-09-20 17:44:34 +0100
commitd9cba6398e2323b8d8cd34f791442528517e01b4 (patch)
tree4a8d378584e10c669acee2574fbd47f38f35785f /rest_framework/tests/renderers.py
parentf4670c89969503919cd597529f19174e67acd388 (diff)
downloaddjango-rest-framework-d9cba6398e2323b8d8cd34f791442528517e01b4.tar.bz2
Clean up bits of templates etc
Diffstat (limited to 'rest_framework/tests/renderers.py')
-rw-r--r--rest_framework/tests/renderers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/tests/renderers.py b/rest_framework/tests/renderers.py
index 06954412..b7c386a3 100644
--- a/rest_framework/tests/renderers.py
+++ b/rest_framework/tests/renderers.py
@@ -4,6 +4,7 @@ from django.conf.urls.defaults import patterns, url, include
from django.test import TestCase
from rest_framework import status
+from rest_framework.compat import yaml
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.renderers import BaseRenderer, JSONRenderer, YAMLRenderer, \
@@ -246,7 +247,7 @@ class JSONPRendererTests(TestCase):
self.assertEquals(resp.content, '%s(%s);' % (callback_func, _flat_repr))
-if YAMLRenderer:
+if yaml:
_yaml_repr = 'foo: [bar, baz]\n'
class YAMLRendererTests(TestCase):