def test_user_creation(self):
        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)
Creating a new user populates the correct data, and sets the
dataset/ETHPy150Open codesters/codesters/registration/tests/models.py/RegistrationModelTests.test_user_creation