def test_clear_image(self):
        self.user.image = get_in_memory_image_instance(self.user)
        self.user.save()
        data = {
            'image-clear': True,
            'image': None,
            'timezone': 'US/Central',
            'group_notification_period': 'none',
            'email': self.user.email
        }
        response = self.client.post(
            reverse('update_user', args=(self.user.uuid,)), data)
        self.assertRedirects(
            response,
            reverse('user_profile'),
            target_status_code=302
        )
        user = User.objects.get(pk=self.user.pk)
        self.assertIsNone(user.image)
A user's image should be removed if clear is selected.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UserUpdateViewTest.test_clear_image