def METHOD_NAME(self, test_item):
    file_path = os.path.join(os.path.dirname(__file__), self.file1_name)
    with open(file_path, 'rb') as f:
        file_upload = FileStorage(f)
        result = self.app.post('/api/action/package_revise',
                               extra_environ={
                                   'Authorization': str(self.sysadmin_user['apikey']),
                               },
                               headers={
                                   'User-Agent': test_item['user_agent']
                               },
                               data={
                                   'match__name': self.dataset1_name,
                                   'update__resources__0__url_type': 'upload',
                                   'update__resources__0__resource_type': 'file.upload',
                                   'update__resources__0__upload': file_upload,
                                   'update__resources__0__name': 'test_resource_from_browser.csv',
                               })
    s3obj = self._fetch_s3_object(self.dataset1_dict['resources'][0]['id'], self.file1_name)
    assert test_item['autoscan'] == bool(s3obj.get('Metadata', {}).get('autoscan'))