Ejemplo n.º 1
0
    def test_parse_table_fail(self):
        # should fail with parse error
        f = StringIO(table_io.example)

        self.assertRaises(ValueError, clustal_io.read, f)

        f.close()
Ejemplo n.º 2
0
    def test_parse_table_fail(self):
        # should fail with parse error
        f = StringIO(table_io.example)

        self.assertRaises(ValueError, clustal_io.read, f)

        f.close()
Ejemplo n.º 3
0
    def test_write(self):
        f = StringIO(clustal_io.example)
        seqs = clustal_io.read(f)

        fout = StringIO()
        clustal_io.write(fout, seqs)

        fout.seek(0)
        seqs2 = clustal_io.read(fout)

        self.assertEqual(seqs, seqs2)

        f.close()
Ejemplo n.º 4
0
    def test_write(self):
        f = StringIO(clustal_io.example)
        seqs = clustal_io.read(f)

        fout = StringIO()
        clustal_io.write(fout, seqs)

        fout.seek(0)
        seqs2 = clustal_io.read(fout)

        self.assertEqual(seqs, seqs2)

        f.close()
Ejemplo n.º 5
0
 def test_parse_clustal_example(self):
     f = StringIO(clustal_io.example)
     seqs = clustal_io.read(f)
     f.close()
Ejemplo n.º 6
0
 def test_parse_plain_fail(self):
     # should fail with parse error
     f = StringIO(plain_io.example)
     self.assertRaises(ValueError,
                       msf_io.read, f)
     f.close()
Ejemplo n.º 7
0
 def test_parse_clustal_example(self):
     f = StringIO(clustal_io.example)
     seqs = clustal_io.read(f)
     f.close()
Ejemplo n.º 8
0
 def test_parse_plain_fail(self):
     # should fail with parse error
     f = StringIO(plain_io.example)
     self.assertRaises(ValueError, msf_io.read, f)
     f.close()