def test_unreferred_user_registered(self):
        request = HttpRequest()
        models.associate_registered_user_with_referral("", user=self.user, request=request)

        # new user is in the database
        user_in_db = User.objects.get(username=self.user.username)
        self.assertEqual(user_in_db.username, self.user.username)