the jsonify test was breaking because it imported from simplejson instead of json that should be installed via setup.py at build time.

This commit is contained in:
Alfredo Deza
2010-12-08 16:40:02 -05:00
parent 5eda96b779
commit fa7a08dc98

View File

@@ -1,7 +1,7 @@
from pecan.jsonify import jsonify, encode
from pecan import Pecan, expose
from webtest import TestApp
from simplejson import loads
from json import loads
def make_person():
@@ -58,4 +58,4 @@ class TestJsonify(object):
r = app.get('/')
assert r.status_int == 200
assert loads(r.body) == {'name':'Jonathan LaCour'}
assert loads(r.body) == {'name':'Jonathan LaCour'}