示例#1
0
    def test_genbank_to_dna(self):
        i = 1
        exp = self.multi[i]
        obs = _genbank_to_dna(self.multi_fp, seq_num=i + 1)
        exp = DNA(exp[0], metadata=exp[1], lowercase=True, positional_metadata=exp[2])

        self.assertEqual(exp, obs)
示例#2
0
 def test_genbank_to_dna(self):
     i = 1
     exp = self.multi[i]
     obs = _genbank_to_dna(self.multi_fp, seq_num=i+1)
     exp = DNA(exp[0], metadata=exp[1], lowercase=True,
               positional_metadata=exp[2])
     self.assertEqual(exp, obs)
示例#3
0
    def test_roundtrip_dna(self):
        with io.StringIO() as fh:
            _dna_to_genbank(_genbank_to_dna(self.single_rna_fp), fh)
            obs = fh.getvalue()

        with open(self.single_rna_fp) as fh:
            exp = fh.read()

        self.assertEqual(obs, exp)
示例#4
0
    def test_roundtrip_dna(self):
        with io.StringIO() as fh:
            _dna_to_genbank(_genbank_to_dna(self.single_rna_fp), fh)
            obs = fh.getvalue()

        with open(self.single_rna_fp) as fh:
            exp = fh.read()

        self.assertEqual(obs, exp)