def test_can_read_from_fasta(self):
     path = os.path.join(self.data_dir, "fasta", "lower.fa")
     wtseq = parsers.parse_wt_sequence(path, coding=False)
     expected = ("ACAGTTGGATATAGTAGTTTGTACGAGTTGCTTGTGGCTT"
                 "CGCCAGCGCATACCAGCATAGTAAAGGCAACGGCCTCTGA"
                 "GAGGCTACGATCGTGCCTTGTGGCAAGTCTTCGCTCGCAC"
                 "GCCCTTCCTACCGTGCTATGAGAGGAAATCTCGGGCGTA").upper()
     self.assertEqual(wtseq, expected)
 def test_ok_divisible_by_three_coding(self):
     parsers.parse_wt_sequence("ATGATC", coding=True)
 def test_ok_not_divisible_by_three_noncoding(self):
     parsers.parse_wt_sequence("ATGG", coding=False)
 def test_error_not_divisible_by_three(self):
     with self.assertRaises(exceptions.SequenceFrameError):
         parsers.parse_wt_sequence("ATGG", coding=True)
 def test_error_invalid_chars(self):
     with self.assertRaises(exceptions.InvalidWildTypeSequence):
         parsers.parse_wt_sequence("ATXG", coding=False)