Skip to content

Commit

Permalink
Add tests for hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed May 14, 2014
1 parent a87ca73 commit 4e0476f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_hashes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from webhooks.hashes import placebo_hash_function, basic_hash_function


def test_placebo():
assert placebo_hash_function() == ""


def test_basic():
hashes = set([basic_hash_function() for x in range(30)])
assert len(hashes) == 30

0 comments on commit 4e0476f

Please sign in to comment.