Skip to content

Commit

Permalink
[master][1783][xs]: Fix hash tests - obviously the hash is not univer…
Browse files Browse the repository at this point in the history
…sally determinable.
  • Loading branch information
David Read committed Feb 7, 2012
1 parent 61c01e6 commit ad599ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/lib/test_hash.py
Expand Up @@ -9,8 +9,8 @@ def setup_class(cls):
secret = '42' # so that these tests are repeatable

def test_get_message_hash(self):
assert_equals(get_message_hash(u'/tag/country-uk'), '6f58ff51b42e6b2d2e700abd1a14c9699e115c61')
assert_equals(len(get_message_hash(u'/tag/country-uk')), len('6f58ff51b42e6b2d2e700abd1a14c9699e115c61'))

def test_get_message_hash_unicode(self):
assert_equals(get_message_hash(u'/tag/biocombust\xedveis'), 'd748fa890eb6a964cd317e6ff62905fad645b43d')
assert_equals(len(get_message_hash(u'/tag/biocombust\xedveis')), len('d748fa890eb6a964cd317e6ff62905fad645b43d'))

0 comments on commit ad599ea

Please sign in to comment.