Example #1
0
 def test_create_user_email_domain_normalize_with_whitespace(self):
     returned = UserManager.normalize_email('email\ [email protected]')
     self.assertEquals(returned, 'email\ [email protected]')
Example #2
0
 def test_create_user_email_domain_normalize(self):
     returned = UserManager.normalize_email('*****@*****.**')
     self.assertEquals(returned, '*****@*****.**')
Example #3
0
 def test_create_user_email_domain_normalize_rfc3696(self):
     # According to  http://tools.ietf.org/html/rfc3696#section-3
     # the "@" symbol can be part of the local part of an email address
     returned = UserManager.normalize_email(r'Abc\@[email protected]')
     self.assertEquals(returned, r'Abc\@[email protected]')
Example #4
0
 def test_create_user_email_domain_normalize_rfc3696(self):
     # According to  http://tools.ietf.org/html/rfc3696#section-3
     # the "@" symbol can be part of the local part of an email address
     returned = UserManager.normalize_email(r'Abc\@[email protected]')
     self.assertEquals(returned, r'Abc\@[email protected]')
Example #5
0
 def test_create_user_email_domain_normalize_with_whitespace(self):
     returned = UserManager.normalize_email('email\ [email protected]')
     self.assertEquals(returned, 'email\ [email protected]')
Example #6
0
 def test_create_user_email_domain_normalize(self):
     returned = UserManager.normalize_email('*****@*****.**')
     self.assertEquals(returned, '*****@*****.**')