#NEWLINE# def test_trait_set_deprecated( self ) : #NEWLINE# #INDENT# obj = TraitsObject ( ) #NEWLINE# with self . assertNotDeprecated ( ) : #NEWLINE# #INDENT# obj . trait_set ( integer = 1 ) #NEWLINE# #UNINDENT# with self . assertDeprecated ( ) : #NEWLINE# #INDENT# obj . set ( string = 'foo' ) #NEWLINE# #UNINDENT# self . assertEqual ( obj . string , 'foo' ) #NEWLINE# self . assertEqual ( obj . integer , 1 )