#NEWLINE# def test_layout_toggle_fixed( self ) : #NEWLINE# #INDENT# tr = Layout ( ) #NEWLINE# tr . fixed = True #NEWLINE# try : #NEWLINE# #INDENT# tr . Test = 42 #NEWLINE# raise AssertionError #NEWLINE# #UNINDENT# except AttributeError as e : #NEWLINE# #INDENT# self . assertEqual ( str ( e ) , e . fixed_error ) #NEWLINE# #UNINDENT# tr . fixed = False #NEWLINE# tr . Test = 42