Beispiel #1
0
 def test_correctly_handles_partially_invalid_input(self):
     self.assertMultiLineEqual(to_rna('ACGTXXXCTTAA'), '')
 def test_transcribes_adenosine_unchanged(self):
     self.assertEqual('A', to_rna('T'))
Beispiel #3
0
 def test_transcribes_adenine_to_uracil(self):
     self.assertEqual(to_rna('A'), 'U')
Beispiel #4
0
 def test_correctly_handles_single_invalid_input(self):
     self.assertEqual(to_rna('U'), '')
 def test_transcribes_adenine_to_uracil(self):
     self.assertEqual("U", to_rna("A"))
 def test_transcribes_guanine_to_cytosine(self):
     self.assertEqual("C", to_rna("G"))
Beispiel #7
0
 def test_adenine_to_uracil_dna(self):
     self.assertEqual('A', to_rna('U'))
     self.assertEqual('a', to_rna('U'))
 def test_transcribes_guanine_to_cytosine(self):
     self.assertEqual('C', to_rna('G'))
Beispiel #9
0
 def test_thymine_to_adedine_dna(self):
     self.assertEqual('T', to_rna('A'))
     self.assertEqual('t', to_rna('a'))
Beispiel #10
0
 def test_guanine_to_cytosine_dna(self):
     self.assertEqual('G', to_rna('C'))
     self.assertEqual('g', to_rna('c'))
 def test_transcribes_guanosine_unchanged(self):
     self.assertEqual('G', to_rna('C'))
 def test_transcribes_cytidine_unchanged(self):
     self.assertEqual('C', to_rna('G'))
 def test_transcribes_thymidine_to_uracil(self):
     self.assertEqual('U', to_rna('A'))
 def test_transcribes_adenine_to_uracil(self):
     self.assertEqual('U', to_rna('A'))
Beispiel #15
0
 def test_combinations_dna(self):
     self.assertEqual('ggcc', to_rna('ccgg'))
     self.assertEqual('Ta gC', to_rna('Au cG'))
 def test_transcribes_all_occurences(self):
     self.assertEqual('UGCACCAGAAUU', to_rna('ACGTGGTCTTAA'))
 def test_transcribes_all_occurences(self):
     self.assertEqual('UGCACCAGAAUU', to_rna('ACGTGGTCTTAA'))
 def test_transcribes_thymine_to_adenine(self):
     self.assertEqual("A", to_rna("T"))
Beispiel #19
0
 def test_thymine_to_adedine_dna(self):
     self.assertEqual('T', to_rna('A'))
     self.assertEqual('t', to_rna('a'))
 def test_transcribes_all_occurences(self):
     self.assertEqual("UGCACCAGAAUU", to_rna("ACGTGGTCTTAA"))
Beispiel #21
0
 def test_guanine_to_cytosine_dna(self):
     self.assertEqual('G', to_rna('C'))
     self.assertEqual('g', to_rna('c'))
Beispiel #22
0
 def test_transcribes_thymine_to_adenine(self):
     self.assertEqual(to_rna('T'), 'A')
Beispiel #23
0
 def test_adenine_to_uracil_dna(self):
     self.assertEqual('A', to_rna('U'))
     self.assertEqual('a', to_rna('U'))
Beispiel #24
0
 def test_transcribes_all_occurences(self):
     self.assertMultiLineEqual(to_rna('ACGTGGTCTTAA'), 'UGCACCAGAAUU')
Beispiel #25
0
 def test_combinations_dna(self):
     self.assertEqual('ggcc', to_rna('ccgg'))
     self.assertEqual('Ta gC', to_rna('Au cG'))
Beispiel #26
0
 def test_correctly_handles_completely_invalid_input(self):
     self.assertMultiLineEqual(to_rna('XXX'), '')
 def test_transcribes_thymine_to_adenine(self):
     self.assertEqual('A', to_rna('T'))
Beispiel #28
0
 def test_transcribes_guanine_to_cytosine(self):
     self.assertEqual(to_rna('G'), 'C')
Beispiel #29
0
 def test_transcribes_all(self):
     self.assertEqual('GCTA', to_rna('CGAU'))
     self.assertEqual('gcta', to_rna('cgau'))