fixing compat with py25

This commit is contained in:
markotibold 2011-03-20 11:56:43 +01:00
parent d866f2177e
commit b4a076c822

View File

@ -165,7 +165,10 @@ class AllowedMethodsTests(TestCase):
#above testcases need to probably moved to the core
from djangorestframework.compat import RequestFactory
import json
try:
import json
except ImportError:
import simplejson as json
class TestRotation(TestCase):
"""For the example the maximum amount of Blogposts is capped off at views.MAX_POSTS.