#NEWLINE# def test_shadow_property_smart( self ) : #NEWLINE# #INDENT# 'Test if the shadow property trait type works correctly.' #NEWLINE# x = numpy . linspace ( 0 , 1 ) #NEWLINE# d = DataSmart ( x = x ) #NEWLINE# self . assertEqual ( numpy . all ( ( d . x == x ) ) , True ) #NEWLINE# self . assertEqual ( numpy . all ( ( d . _x == x ) ) , True ) #NEWLINE# self . assertEqual ( numpy . all ( ( d . _test == x ) ) , True ) #NEWLINE# old = x . copy ( ) #NEWLINE# x *= 2 #NEWLINE# d . x = x #NEWLINE# self . assertEqual ( numpy . all ( ( d . x == x ) ) , True ) #NEWLINE# self . assertEqual ( numpy . all ( ( d . _x == d ) ) , True ) #NEWLINE# self . assertEqual ( numpy . all ( ( d . _test == old ) ) , True )