'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('forms_test2', 'tesT@EXAMple.com', 'test')
    self.assertEqual(user.email, 'tesT@example.com')
    user = User.objects.create_user('forms_test3', 'tesT', 'test')
    self.assertEqual(user.email, 'tesT')
