Removed unused requirements and modules.

This commit is contained in:
Rebecca Law
2016-04-21 09:11:00 +01:00
parent 3bbf2e3205
commit 2afbbd6423
5 changed files with 4 additions and 35 deletions

View File

@@ -1,17 +0,0 @@
from app.main.encryption import hashpw, check_hash
def test_should_hash_password():
password = 'passwordToHash'
assert password != hashpw(password)
def test_should_check_password():
value = 's3curePassword!'
encrypted = hashpw(value)
assert check_hash(value, encrypted) is True
def test_checkpw_should_fail_when_pw_does_not_match():
value = hashpw('somePassword')
assert check_hash('somethingDifferent', value) is False