

def test_value_from_wrong_urls(self):
    'Widget should not restore a value from a url other than the one specified.'
    with value.settings(MEDIA_ROOT=self.temp_dir):
        storage = FileSystemStorage()
        stored = serialize_upload(self.temp_name, storage, '/some-other/url/')
        value = self.widget.value_from_datadict(data={
            '_myfile': stored,
        }, files={
            
        }, name='myfile')
        self.assertIsNone(value)

dataset/ETHPy150Open caktus/django-sticky-uploads/stickyuploads/tests/test_widgets.py StickyUploadWidgetTestCase.test_value_from_wrong_urls/VarMisuse@13/46 `self`->`value`