Skip to content

Commit

Permalink
[#1505] Test for actual True-ness, and not truthiness.
Browse files Browse the repository at this point in the history
If we don't add the ```is True```, any truthy value works (i.e. 'string').
  • Loading branch information
vitorbaptista authored and amercader committed Jun 19, 2014
1 parent 893919b commit ccd45c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/new_tests/logic/auth/test_update.py
Expand Up @@ -103,7 +103,8 @@ def test_user_update_user_can_update_herself(self):
'name': 'updated_user_name',
}

assert helpers.call_auth('user_update', context=context, **params)
result = helpers.call_auth('user_update', context=context, **params)
assert result is True

def test_user_update_with_no_user_in_context(self):

Expand Down

0 comments on commit ccd45c0

Please sign in to comment.