def test_all(self): output = utils.one_to_three('RKDEQNHSTYCWMAILFVPG*') self.assertEqual( output, 'ArgLysAspGluGlnAsnHisSerThrTyrCysTrpMetAlaIleLeuPheValProGlyTer')
def test_single(self): output = utils.one_to_three('A') self.assertEqual(output, 'Ala')
def test_wrong_pair(self): with self.assertRaises(TypeError): utils.one_to_three('AZ')
def test_empty(self): output = utils.one_to_three('') self.assertEqual(output, '')