def test_access_key_uses_edw_hash(app, access_key): from encoded.edw_hash import EDWHash from snovault import COLLECTIONS root = app.registry[COLLECTIONS] obj = root.by_item_type['access_key'][access_key['access_key_id']] pwhash = obj.properties['secret_access_key_hash'] assert EDWHash.hash(access_key['secret_access_key']) == pwhash
def test_edw_hash(password, pwhash): from encoded.edw_hash import EDWHash assert EDWHash.hash(password) == pwhash