'Preserve the case of the user name (before the @ in the email address)
when creating a user (#5605).'

def test_preserve_username_case(self):

    user = User.objects.create_user(u'forms_test2', u'tesT@EXAMple.com', u'test')
    self.assertEqual(user.email, u'tesT@example.com')
    user = User.objects.create_user(u'forms_test3', u'tesT', u'test')
    self.assertEqual(user.email, u'tesT')
