#NEWLINE# def test_translate_passes_parameters_through( self ) : #NEWLINE# #INDENT# exp = Protein ( 'MW' ) #NEWLINE# for seq in ( RNA ( 'UAAAUUGUGGUAA' ) , DNA ( 'TAAATTGTGGTAA' ) ) : #NEWLINE# #INDENT# obs = seq . translate ( 13 , reading_frame = 2 , start = 'require' , stop = 'require' ) #NEWLINE# self . assertEqual ( obs , exp ) #NEWLINE# obs = seq . translate ( genetic_code = 13 , reading_frame = 2 , start = 'require' , stop = 'require' ) #NEWLINE# self . assertEqual ( obs , exp ) #NEWLINE# obs = seq . translate ( 13 , 2 , 'require' , 'require' ) #NEWLINE# self . assertEqual ( seq , exp )