Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbabu committed Aug 28, 2013
1 parent 484b567 commit c13389f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/tests/functional/api/test_user.py
Expand Up @@ -63,9 +63,10 @@ def test_user_create_default(self):
'email': 'testinganewuser@ckan.org',
'password': 'random',
}
res = self.app.post('/api/3/action/user_create', json.dumps(params))
res = self.app.post('/api/3/action/user_create', json.dumps(params),
expect_errors=True)
res_dict = json.loads(res.body)
assert res_dict['success'] is True
assert res_dict['success'] is False


class TestCreateUser(PylonsTestCase):
Expand Down

0 comments on commit c13389f

Please sign in to comment.