def test_nullstrand_returns_no_amino_acids(self): strand = '' enizymes = list(ribosome_get_enzymes_from_strand(strand)) self.assertEqual(len(enizymes), 0)
def test_converts_long_strands_with_extra_character(self): strand = 'ACGCCACCG' enzymes = list(ribosome_get_enzymes_from_strand(strand)) self._assert_acid_chains_in_enzymes([[AminoAcid.cut, AminoAcid.inc, AminoAcid.mvr, AminoAcid.mvl]], enzymes)
def test_can_cut_into_multiple_acid_chains(self): strand = 'ACGCAACACCG' enzymes = list(ribosome_get_enzymes_from_strand(strand)) self._assert_acid_chains_in_enzymes([[AminoAcid.cut, AminoAcid.inc], [AminoAcid.mvr, AminoAcid.mvl]], enzymes)
def test_can_convert_one_duplet_to_amino_acid(self): strand = 'AC' enzymes = list(ribosome_get_enzymes_from_strand(strand)) self._assert_acid_chains_in_enzymes([[AminoAcid.cut]], enzymes)