def test_write(self):
     t = SampleTable(self.recs)
     output_file = io.StringIO()
     t.write(output_file)
     self.assertEqual(output_file.getvalue(), NORMAL_TSV)
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
Exemple #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)