def METHOD_NAME(
        self, ckan_config, monkeypatch, tmpdir):
    monkeypatch.setitem(ckan_config, u'ckan.storage_path', str(tmpdir))
    monkeypatch.setattr(ckan.lib.uploader, u'_storage_path', str(tmpdir))
    # this test data is based on real observation using a browser
    res = {u'clear_upload': u'true',
           u'format': u'PNG',
           u'url': u'https://example.com/data.csv',
           u'description': u'',
           u'upload': FileStorage(filename=u''),
           u'package_id': u'dataset1',
           u'id': u'8a3a874e-5ee1-4e43-bdaf-e2569cf72344',
           u'name': u'data.csv'}
    res_upload = ResourceUpload(res)
    assert res_upload.filename is None