def test_write(self):
     t = SampleTable(self.recs)
     output_file = io.StringIO()
     t.write(output_file)
     self.assertEqual(output_file.getvalue(), NORMAL_TSV)
Ejemplo n.º 2
0
def temp_sample_file(samples):
    f = tempfile.NamedTemporaryFile(mode="wt")
    t = SampleTable(samples)
    t.write(f)
    f.seek(0)
    return f
def temp_sample_file(samples):
    f = tempfile.NamedTemporaryFile(mode="wt")
    t = SampleTable(samples)
    t.write(f)
    f.seek(0)
    return f
Ejemplo n.º 4
0
 def test_write(self):
     t = SampleTable(self.recs)
     output_file = io.StringIO()
     t.write(output_file)
     self.assertEqual(output_file.getvalue(), NORMAL_TSV)