#NEWLINE# def test_rev_prefix_map( self ) : #NEWLINE# #INDENT# 'Test the reverse prefix map trait we use.' #NEWLINE# p = Prop ( ) #NEWLINE# p . representation = 'p' #NEWLINE# p . representation = 'wire' #NEWLINE# p . representation = 'points' #NEWLINE# p . representation = 2 #NEWLINE# self . assertEqual ( self . representation , 'surface' ) #NEWLINE# self . assertRaises ( traits . TraitError , setattr , p , 'representation' , 'points1' ) #NEWLINE# self . assertRaises ( traits . TraitError , setattr , p , 'representation' , 'POINTS' )