@override_settings(USERPROFILES_REGISTRATION_FULLNAME=True)
    def test_profile_change_fullname_enabled(self):
        self.client.login(username=self.data['username'], password=self.data['password'])

        change_url = reverse('userprofiles_profile_change')

        response = self.client.get(change_url)
        self.assertTrue('first_name' in response.context['form'].fields and
            'last_name' in response.context['form'].fields)

        self.client.post(change_url, {'first_name': self.data['first_name'],
            'last_name': self.data['last_name']})
        response = self.client.get(change_url)

        self.assertTrue(User.objects.filter(pk=self.user.pk,
            first_name=self.data['first_name'], last_name=self.data['last_name']).exists())
dataset/ETHPy150Open stephrdev/django-userprofiles/userprofiles/contrib/profiles/tests/test_views.py/ViewTests.test_profile_change_fullname_enabled/original