'Ensure that the outcome of calling the function is that the named images
are deleted from the profile image storage backend.'

def test_remove(self):

    requested_sizes = {10: 'ten.jpg', 100: 'hundred.jpg', 1000: 'thousand.jpg'}
    mock_storage = mock.Mock()
    with mock.patch('openedx.core.djangoapps.profile_images.images.get_profile_image_storage', return_value=mock_storage):
        remove_profile_images(requested_sizes)
        deleted_names = [v[0][0] for v in mock_storage.delete.call_args_list]
        self.assertEqual(requested_sizes.values(), deleted_names)
        mock_storage.save.reset_mock()
