#NEWLINE# def test_transform_func( self ) : #NEWLINE# #INDENT# d = TransformDict ( str . lower ) #NEWLINE# self . assertIs ( d . transform_func , str . lower ) #NEWLINE# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# d . transform_func = str . upper