mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
15 lines
500 B
Python
15 lines
500 B
Python
from sentry.models.useremail import UserEmail
|
|
from sentry.testutils.cases import TestCase
|
|
from sentry.testutils.silo import control_silo_test
|
|
|
|
|
|
@control_silo_test
|
|
class UserEmailTest(TestCase):
|
|
def test_hash_does_not_reset(self):
|
|
user = self.create_user("[email protected]")
|
|
email = UserEmail.objects.get_or_create(user=user)[0]
|
|
email2 = UserEmail.objects.get(id=email.id)
|
|
|
|
assert email.validation_hash
|
|
assert email.validation_hash == email2.validation_hash
|