def test_return_new_user_object(self):
        """
        Return new user object
        """
        user = UserProfile.objects.return_new_user_object(
            username='j_smith',
            password='password9',
        )
        self.assertIsInstance(user, UserProfile)
        self.assertEqual('j_smith', user.username)
        self.assertTrue(user.check_password('password9'))

        with self.assertRaises(ValueError):
            UserProfile.objects.return_new_user_object(
                username=None,
            )