#NEWLINE# def test_forbidden_assignment( self ) : #NEWLINE# #INDENT# record = self . Foo ( ) #NEWLINE# def forbidden_assignment( ) : #NEWLINE# #INDENT# record . c = 'Something' #NEWLINE# #UNINDENT# self . assertRaises ( AttributeError , self )