def test_write_seq(self) :
        f = StringIO(ig_io.example)
        seqs = ig_io.read(f)
        
        fout = StringIO()
        ig_io.write(fout,seqs)
        
        fout.seek(0)

        seqs2 = ig_io.read(fout)
        
        self.assertEqual(seqs, seqs2)
   def test_read(self) :
       f = StringIO(ig_io.example)
       seqs = ig_io.read(f)
 
       self.assertEqual(len(seqs), 2)        
       self.assertEqual(seqs[0].description, "H.sapiens fau mRNA, 518 bases")
       self.assertEqual(seqs[1].name, "HSFAU1")
       self.assertEqual(len(seqs[1]), 299)
 def test_read2(self):
     f = testdata_stream("intelligenetics.txt")
     seqs = ig_io.read(f)
     self.assertEqual(len(seqs[0]), 518)
     self.assertEqual(len(seqs[1]), 2016)
     f.close()