def test_history_import_abspath_in_metadata():
 with HistoryArchive() as history_archive:
  history_archive.write_metafiles(dataset_file_name=os.path.join(history_archive.temp_directory, 'outside.txt'))
  history_archive.write_file('datasets/Pasted_Entry_1.txt', 'foo')
  history_archive.write_outside()
  _run_jihaw_cleanup(history_archive, 'Absolute path in datasets_attrs.txt allowed')

def test_history_import_abspath_in_metadata ( ) : with HistoryArchive ( ) as history_archive : history_archive . write_metafiles ( dataset_file_name = os . path . join ( history_archive . temp_directory , 'outside.txt' ) ) history_archive . write_file ( 'datasets/Pasted_Entry_1.txt' , 'foo' ) history_archive . write_outside ( ) _run_jihaw_cleanup ( history_archive , 'Absolute path in datasets_attrs.txt allowed' )
ensure that dataset_attrs .