Skip to content

Commit

Permalink
[#262] Fix test due to json lib change
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 20, 2013
1 parent 93a3c3a commit 3ae0ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/tests/logic/test_action.py
Expand Up @@ -822,7 +822,7 @@ def test_31_bad_request_format(self):
postparams = '%s=1' % json.dumps('not a dict')
res = self.app.post('/api/action/package_list', params=postparams,
status=400)
assert 'Request data JSON decoded to u\'not a dict\' but it needs to be a dictionary.' in res.body, res.body
assert "Bad request - JSON Error: Request data JSON decoded to 'not a dict' but it needs to be a dictionary." in res.body, res.body

def test_31_bad_request_format_not_json(self):
postparams = '=1'
Expand Down

0 comments on commit 3ae0ad1

Please sign in to comment.