#NEWLINE# @ raises ( TypeError ) #NEWLINE# def test_column_cannot_edit_after_save( self ) : #NEWLINE# #INDENT# doc = SimpleDocument ( name = u_ ( 'Foo' ) ) #NEWLINE# doc . content = open ( self . fake_file . name , 'rb' ) #NEWLINE# DBSession . add ( doc ) #NEWLINE# DBSession . flush ( ) #NEWLINE# DBSession . commit ( ) #NEWLINE# d = DBSession . query ( SimpleDocument ) . filter_by ( name = u_ ( 'Foo' ) ) . first ( ) #NEWLINE# d . content [ 'hello' ] = 'Everybody'