test_utils.py 296 B

12345678910
  1. from django.test import TestCase
  2. from ..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'))