def test_stop_codon_rna_sequence_3(self):
     value = "UGA"
     expected = []
     self.assertEqual(proteins(value), expected)
Пример #2
0
 def test_stops_translation_if_stop_codon_in_middle_of_six_codon_sequence(
         self):
     strand = 'UGGUGUUAUUAAUGGUUU'
     expected = ['Tryptophan', 'Cysteine', 'Tyrosine']
     self.assertEqual(expected, proteins(strand))
 def test_tryptophan_rna_sequence(self):
     value = "UGG"
     expected = ["Tryptophan"]
     self.assertEqual(proteins(value), expected)
 def test_identifies_Phenylalanine_codons(self):
     for codon in ['UUU', 'UUC']:
         self.assertEqual(proteins(codon), ['Phenylalanine'])
Пример #5
0
 def test_stops_translation_if_stop_codon_at_end_of_two_codon_sequence(
         self):
     strand = 'UGGUAG'
     expected = ['Tryptophan']
     self.assertEqual(expected, proteins(strand))
Пример #6
0
 def test_translation_stops_if_stop_codon_in_middle_of_six_codon_sequence(
         self):
     value = "UGGUGUUAUUAAUGGUUU"
     expected = ["Tryptophan", "Cysteine", "Tyrosine"]
     self.assertEqual(proteins(value), expected)
Пример #7
0
 def test_leucine_rna_sequence_2(self):
     value = "UUG"
     expected = ["Leucine"]
     self.assertEqual(proteins(value), expected)
 def test_identifies_stop_codons(self):
     for codon in ['UAA', 'UAG', 'UGA']:
         self.assertEqual(proteins(codon), [])
 def test_translates_rna_strand_into_correct_protein_list(self):
     strand = 'AUGUUUUGG'
     expected = ['Methionine', 'Phenylalanine', 'Tryptophan']
     self.assertEqual(proteins(strand), expected)
 def test_identifies_Cysteine_codons(self):
     for codon in ['UGU', 'UGC']:
         self.assertEqual(proteins(codon), ['Cysteine'])
 def test_identifies_Tryptophan_codons(self):
     self.assertEqual(proteins('UGG'), ['Tryptophan'])
 def test_identifies_Tyrosine_codons(self):
     for codon in ['UAU', 'UAC']:
         self.assertEqual(proteins(codon), ['Tyrosine'])
 def test_identifies_Serine_codons(self):
     for codon in ['UCU', 'UCC', 'UCA', 'UCG']:
         self.assertEqual(proteins(codon), ['Serine'])
 def test_identifies_Leucine_codons(self):
     for codon in ['UUA', 'UUG']:
         self.assertEqual(proteins(codon), ['Leucine'])
 def test_translation_stops_if_stop_codon_at_beginning_of_sequence(self):
     value = "UAGUGG"
     expected = []
     self.assertEqual(proteins(value), expected)
 def test_stops_translation_if_stop_codon_at_beginning_of_sequence(self):
     strand = 'UAGUGG'
     expected = []
     self.assertEqual(proteins(strand), expected)
Пример #17
0
 def test_translation_stops_if_stop_codon_at_end_of_three_codon_sequence(
         self):
     value = "AUGUUUUAA"
     expected = ["Methionine", "Phenylalanine"]
     self.assertEqual(proteins(value), expected)
 def test_stops_translation_if_stop_codon_at_end_of_two_codon_sequence(
         self):
     strand = 'UGGUAG'
     expected = ['Tryptophan']
     self.assertEqual(proteins(strand), expected)
Пример #19
0
 def test_translation_exception_if_non_defined_codon(self):
     value = "UGGUGUUALOL"
     with self.assertRaises(KeyError):
         proteins(value)
 def test_stops_translation_if_stop_codon_at_end_of_three_codon_sequence(
         self):
     strand = 'AUGUUUUAA'
     expected = ['Methionine', 'Phenylalanine']
     self.assertEqual(proteins(strand), expected)
Пример #21
0
 def test_tyrosine_rna_sequence_2(self):
     value = "UAC"
     expected = ["Tyrosine"]
     self.assertEqual(proteins(value), expected)
 def test_stops_translation_if_stop_codon_in_middle_of_six_codon_sequence(
         self):
     strand = 'UGGUGUUAUUAAUGGUUU'
     expected = ['Tryptophan', 'Cysteine', 'Tyrosine']
     self.assertEqual(proteins(strand), expected)
Пример #23
0
 def test_stops_translation_if_stop_codon_at_beginning_of_sequence(self):
     strand = 'UAGUGG'
     expected = []
     self.assertEqual(expected, proteins(strand))
 def test_AUG_translates_to_methionine(self):
     self.assertEqual(proteins('AUG'), ['Methionine'])
Пример #25
0
 def test_stops_translation_if_stop_codon_at_end_of_three_codon_sequence(
         self):
     strand = 'AUGUUUUAA'
     expected = ['Methionine', 'Phenylalanine']
     self.assertEqual(expected, proteins(strand))
Пример #26
0
 def test_stops_translation_if_stop_codon_in_middle_of_three_codon_sequence(
         self):
     strand = 'UGGUAGUGG'
     expected = ['Tryptophan']
     self.assertEqual(proteins(strand), expected)
Пример #27
0
 def test_AUG_translates_to_methionine(self):
     self.assertEqual(['Methionine'], proteins('AUG'))
Пример #28
0
 def test_identifies_Phenylalanine_codons(self):
     for codon in ['UUU', 'UUC']:
         self.assertEqual(['Phenylalanine'], proteins(codon))
 def test_methionine_rna_sequence(self):
     value = "AUG"
     expected = ["Methionine"]
     self.assertEqual(proteins(value), expected)
Пример #30
0
 def test_identifies_Leucine_codons(self):
     for codon in ['UUA', 'UUG']:
         self.assertEqual(['Leucine'], proteins(codon))
 def test_translate_rna_strand_into_correct_protein_list(self):
     value = "AUGUUUUGG"
     expected = ["Methionine", "Phenylalanine", "Tryptophan"]
     self.assertEqual(proteins(value), expected)
Пример #32
0
 def test_identifies_Serine_codons(self):
     for codon in ['UCU', 'UCC', 'UCA', 'UCG']:
         self.assertEqual(['Serine'], proteins(codon))
Пример #33
0
 def test_translation_stops_if_stop_codon_at_end_of_two_codon_sequence(
         self):
     value = "UGGUAG"
     expected = ["Tryptophan"]
     self.assertEqual(proteins(value), expected)
Пример #34
0
 def test_identifies_Tyrosine_codons(self):
     for codon in ['UAU', 'UAC']:
         self.assertEqual(['Tyrosine'], proteins(codon))
Пример #35
0
 def test_translation_stops_if_stop_codon_in_middle_of_three_codon_sequence(
         self):
     value = "UGGUAGUGG"
     expected = ["Tryptophan"]
     self.assertEqual(proteins(value), expected)
Пример #36
0
 def test_identifies_Cysteine_codons(self):
     for codon in ['UGU', 'UGC']:
         self.assertEqual(['Cysteine'], proteins(codon))
Пример #37
0
 def test_translation_exception_if_truncated_codon(self):
     value = "UGGUGUUAUU"
     with self.assertRaises(KeyError):
         proteins(value)
Пример #38
0
 def test_identifies_Tryptophan_codons(self):
     self.assertEqual(['Tryptophan'], proteins('UGG'))
Пример #39
0
 def test_phenylalanine_rna_sequence_2(self):
     value = "UUC"
     expected = ["Phenylalanine"]
     self.assertEqual(proteins(value), expected)
Пример #40
0
 def test_identifies_stop_codons(self):
     for codon in ['UAA', 'UAG', 'UGA']:
         self.assertEqual([], proteins(codon))
Пример #41
0
 def test_serine_rna_sequence_4(self):
     value = "UCG"
     expected = ["Serine"]
     self.assertEqual(proteins(value), expected)
Пример #42
0
 def test_translates_rna_strand_into_correct_protein_list(self):
     strand = 'AUGUUUUGG'
     expected = ['Methionine', 'Phenylalanine', 'Tryptophan']
     self.assertEqual(expected, proteins(strand))
Пример #43
0
 def test_cysteine_rna_sequence_1(self):
     value = "UGU"
     expected = ["Cysteine"]
     self.assertEqual(proteins(value), expected)
 def test_stops_translation_if_stop_codon_in_middle_of_three_codon_sequence(
         self):
     strand = 'UGGUAGUGG'
     expected = ['Tryptophan']
     self.assertEqual(proteins(strand), expected)