old_contents: 
  from sequana.gff3 import GFF3
  from sequana import sequana_data
  from easydev import TempFile
  
  def test_gff():
      gff = GFF3(sequana_data('test_small.gff3'))
      df = gff.get_df()
      assert "telomere" in gff.get_types()
  
  
  def test_gff_rnadiff():
      gff = GFF3(sequana_data('saccer3_truncated.gff'))
      df = gff.get_df()
      gff.get_duplicated_attributes_per_type()
      with TempFile() as fout:
          gff.create_files_for_rnadiff(fout.name)
  
          import pandas as pd
          df1 = pd.read_csv("{}_gene_lengths.tsv".format(fout.name), sep='\t')
          assert df1.Length.sum() == 31755 
  
  
      with TempFile() as fout:
          gff.save_annotation_to_csv(fout.name)
  
  
  
  def test_gff_to_gtf():
      gff = GFF3(sequana_data('saccer3_truncated.gff'))
      with TempFile() as fout:
          df = gff.to_gtf(fout.name)
  
  def test_save_gff_filtered():
      gff = GFF3(sequana_data('saccer3_truncated.gff'))
      with TempFile() as fout:
          df = gff.save_gff_filtered(filename=fout.name)
  
new_contents: 
  from sequana.gff3 import GFF3
  from sequana import sequana_data
  from easydev import TempFile
  
  def test_gff():
      gff = GFF3(sequana_data('test_small.gff3'))
      df = gff.df
      assert "telomere" in gff.features
  
  
  def test_gff_rnadiff():
      gff = GFF3(sequana_data('saccer3_truncated.gff'))
      df = gff.df
      gff.get_duplicated_attributes_per_type()
      with TempFile() as fout:
          gff.create_files_for_rnadiff(fout.name)
  
          import pandas as pd
          df1 = pd.read_csv("{}_gene_lengths.tsv".format(fout.name), sep='\t')
          assert df1.Length.sum() == 31755 
  
  
      with TempFile() as fout:
          gff.save_annotation_to_csv(fout.name)
  
  
  
  def test_gff_to_gtf():
      gff = GFF3(sequana_data('saccer3_truncated.gff'))
      with TempFile() as fout:
          df = gff.to_gtf(fout.name)
  
  def test_save_gff_filtered():
      gff = GFF3(sequana_data('saccer3_truncated.gff'))
      with TempFile() as fout:
          df = gff.save_gff_filtered(filename=fout.name)
  
subject: Fix tests