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'))
def test_transcribes_adenine_to_uracil(self): self.assertEqual(to_rna('A'), 'U')
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"))
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'))
def test_thymine_to_adedine_dna(self): self.assertEqual('T', to_rna('A')) self.assertEqual('t', to_rna('a'))
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'))
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_thymine_to_adenine(self): self.assertEqual("A", to_rna("T"))
def test_transcribes_all_occurences(self): self.assertEqual("UGCACCAGAAUU", to_rna("ACGTGGTCTTAA"))
def test_transcribes_thymine_to_adenine(self): self.assertEqual(to_rna('T'), 'A')
def test_transcribes_all_occurences(self): self.assertMultiLineEqual(to_rna('ACGTGGTCTTAA'), 'UGCACCAGAAUU')
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'))
def test_transcribes_guanine_to_cytosine(self): self.assertEqual(to_rna('G'), 'C')
def test_transcribes_all(self): self.assertEqual('GCTA', to_rna('CGAU')) self.assertEqual('gcta', to_rna('cgau'))