from django.test import TestCase

#~class UtilsTest(TestCase):

    #~def test_can_generate_salt(self):
    #~def test_can_hash_time(self):
    #~def can_send_html_email(self):
    #~def can_send_plaintext_email(self):
    #~def can_send_connect_email(self):

@@ -31,44 +31,249 @@
 se%0A%0A
-#~class UtilsTest(TestCase):%0A%0A    #~
+from .utils import generate_salt, hash_time%0A%0A%0Aclass UtilsTest(TestCase):%0A    def test_can_generate_standard_salt(self):%0A        salt = generate_salt()%0A%0A        self.assertEqual(len(salt), 8)%0A        self.assertRegexpMatches(salt, '%5Cw')%0A%0A    
 def 
@@ -286,24 +286,31 @@
 an_generate_
+longer_
 salt(self):%0A
@@ -317,39 +317,359 @@
     
-#~def test_can_hash_time(self):
+    salt = generate_salt(10)%0A%0A        self.assertEqual(len(salt), 10)%0A        self.assertRegexpMatches(salt, '%5Cw')%0A%0A    def test_can_create_unique_hash(self):%0A        hash_1 = hash_time()%0A        hash_2 = hash_time()%0A%0A        self.assertEqual(len(hash_1), 30)%0A        self.assertRegexpMatches(hash_1, '%5Cw')%0A        self.assertNotEqual(hash_1, hash_2)%0A
 %0A   
@@ -667,32 +667,37 @@
 h_2)%0A%0A    #~def 
+test_
 can_send_html_em
@@ -709,32 +709,37 @@
 elf):%0A    #~def 
+test_
 can_send_plainte
@@ -764,16 +764,21 @@
   #~def 
+test_
 can_send

Add tests for utils