示例#1
0
 def testRnaTranslation(self):
     rna = 'AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA'
     self.assertEqual('MAMAPRTEINSTRING', rnaTranslation(rna))
示例#2
0
 def testRnaTranslation(self):
     rna = 'AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA'
     self.assertEqual('MAMAPRTEINSTRING', rnaTranslation(rna))
示例#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))
示例#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))