'Test that the user gets created with the correct attributes
when they are passed as parameters on the auto-auth page.'

def test_create_defined_user(self):

    self._auto_auth({'username': 'robot', 'password': 'test', 'email': 'robot@edx.org', 'full_name': 'Robot    Name'})
    user = User.objects.get(username='robot')
    self.assertEqual(user.username, 'robot')
    self.assertTrue(user.check_password('test'))
    self.assertEqual(user.email, 'robot@edx.org')
    user_profile = UserProfile.objects.get(user=user)
    self.assertEqual(user_profile.name, 'Robot    Name')
    self.assertFalse(user.is_staff)
