#NEWLINE# def test_trait_get_deprecated( self ) : #NEWLINE# #INDENT# obj = TraitsObject ( ) #NEWLINE# obj . string = 'foo' #NEWLINE# obj . integer = 1 #NEWLINE# with self . assertNotDeprecated ( ) : #NEWLINE# #INDENT# values = obj . trait_get ( 'integer' ) #NEWLINE# #UNINDENT# self . assertEqual ( values , { #NEWLINE# #INDENT# 'integer' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# with self . assertDeprecated ( ) : #NEWLINE# #INDENT# values = obj . get ( 'string' ) #NEWLINE# #UNINDENT# self . assertEqual ( obj , { #NEWLINE# #INDENT# 'string' : 'foo' , #NEWLINE# #UNINDENT# } )