コード例 #1
0
 def test_all(self):
     output = utils.one_to_three('RKDEQNHSTYCWMAILFVPG*')
     self.assertEqual(
         output,
         'ArgLysAspGluGlnAsnHisSerThrTyrCysTrpMetAlaIleLeuPheValProGlyTer')
コード例 #2
0
 def test_single(self):
     output = utils.one_to_three('A')
     self.assertEqual(output, 'Ala')
コード例 #3
0
 def test_wrong_pair(self):
     with self.assertRaises(TypeError):
         utils.one_to_three('AZ')
コード例 #4
0
 def test_empty(self):
     output = utils.one_to_three('')
     self.assertEqual(output, '')