test_utils.py 306 B

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