

def test_user_creation(self):
    "\n        Creating a new user populates the correct data, and sets the\n        user's account inactive.\n        \n        "
    new_user = RegistrationProfile.objects.create_inactive_user(site=Site.objects.get_current(), **self.user_info)
    self.assertEqual(new_user.username, 'alice')
    self.assertEqual(new_user.email, 'alice@example.com')
    self.failUnless(new_user.check_password('swordfish'))
    self.failIf(new_user.is_active)

dataset/ETHPy150Open codesters/codesters/registration/tests/models.py RegistrationModelTests.test_user_creation/original