test_utils.py 338 B

1234567891011
  1. from django.test import TestCase
  2. from misago.users.utils import hash_email
  3. class UserModelTests(TestCase):
  4. serialized_rollback = True
  5. def test_hash_email_works(self):
  6. """hash email produces repeatable outcomes"""
  7. self.assertEqual(hash_email('abc@test.com'),
  8. hash_email('aBc@tEst.cOm'))