def test_history_import_relpath_in_metadata():
 with HistoryArchive() as history_archive:
  history_archive.write_metafiles(dataset_file_name='../outside.txt')
  history_archive.write_file('datasets/Pasted_Entry_1.txt', 'foo')
  history_archive.write_outside()
  _run_jihaw_cleanup(history_archive, 'Relative parent path in datasets_attrs.txt allowed')

def test_history_import_relpath_in_metadata ( ) : with HistoryArchive ( ) as history_archive : history_archive . write_metafiles ( dataset_file_name = '../outside.txt' ) history_archive . write_file ( 'datasets/Pasted_Entry_1.txt' , 'foo' ) history_archive . write_outside ( ) _run_jihaw_cleanup ( history_archive , 'Relative parent path in datasets_attrs.txt allowed' )
ensure that dataset_attrs .