def test_stop_indexes(self): """should return stop codon indexes for a specified frame""" sgc = GeneticCode(self.SGC) seq = DNA.makeSequence("ATGCTAACATAAA") expected = [[9], [4], []] for frame, expect in enumerate(expected): got = sgc.getStopIndices(seq, start=frame) self.assertEqual(got, expect)
def test_stop_indexes(self): """should return stop codon indexes for a specified frame""" sgc = GeneticCode(self.SGC) seq = DNA.makeSequence('ATGCTAACATAAA') expected = [[9], [4], []] for frame, expect in enumerate(expected): got = sgc.getStopIndices(seq, start=frame) self.assertEqual(got, expect)