Exemplo n.º 1
0
 def testRnaTranslation(self):
     rna = 'AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA'
     self.assertEqual('MAMAPRTEINSTRING', rnaTranslation(rna))
Exemplo n.º 2
0
 def testRnaTranslation(self):
     rna = 'AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA'
     self.assertEqual('MAMAPRTEINSTRING', rnaTranslation(rna))
Exemplo n.º 3
0
 def testRnaTranslationFromFile(self):
     with open('data/rnaTranslation.txt') as fp:
         with open('data/rnaTranslationAnswer.txt') as answerFile:
             expectedProtein = answerFile.readline().strip()
             rna = fp.readline().strip()
             self.assertEqual(expectedProtein, rnaTranslation(rna))
Exemplo n.º 4
0
 def testRnaTranslationFromFile(self):
     with open('data/rnaTranslation.txt') as fp:
         with open('data/rnaTranslation.txt') as answerFile:
             expectedProtein = answerFile.readline().strip()
             rna = fp.readline().strip()
             self.assertEqual(expectedProtein, rnaTranslation(rna))