mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
9 lines
325 B
Python
9 lines
325 B
Python
|
|
from app.authentication.utils import generate_secret, get_secret
|
||
|
|
|
||
|
|
|
||
|
|
def test_secret_is_signed_and_can_be_read_again(notify_api):
|
||
|
|
with notify_api.test_request_context():
|
||
|
|
signed_secret = generate_secret('some_uuid')
|
||
|
|
assert signed_secret != 'some_uuid'
|
||
|
|
assert 'some_uuid' == get_secret(signed_secret)
|