Commit 5202791f authored by Serge S. Koval's avatar Serge S. Koval

Python 3 unit test fixes

parent 285b798f
...@@ -730,7 +730,7 @@ def test_ajax_fk(): ...@@ -730,7 +730,7 @@ def test_ajax_fk():
client = app.test_client() client = app.test_client()
req = client.get(u'/admin/view/ajax/lookup/?name=model1&query=foo') req = client.get(u'/admin/view/ajax/lookup/?name=model1&query=foo')
eq_(req.data, u'[[%s, "foo"]]' % model2.id) eq_(req.data.decode('utf-8'), u'[[%s, "foo"]]' % model2.id)
# Check submitting # Check submitting
req = client.post('/admin/view/new/', data={u'model1': as_unicode(model.id)}) req = client.post('/admin/view/new/', data={u'model1': as_unicode(model.id)})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment