#NEWLINE# def test_multiple_inheritance( self ) : #NEWLINE# #INDENT# class AddEventMethods ( object ) : #NEWLINE# #INDENT# update_count = 0 #NEWLINE# @ after_update #NEWLINE# def post_update( self ) : #NEWLINE# #INDENT# self . update_count += 1 #NEWLINE# #UNINDENT# #UNINDENT# class A ( Entity , AddEventMethods ) : #NEWLINE# #INDENT# name = Field ( String ( 50 ) ) #NEWLINE# #UNINDENT# metadata . bind = 'sqlite://' #NEWLINE# setup_all ( True ) #NEWLINE# a1 = A ( name = 'a1' ) #NEWLINE# session . commit ( ) #NEWLINE# session . expunge_all ( ) #NEWLINE# a = A . query . one ( ) #NEWLINE# a . name = 'a1 updated' #NEWLINE# session . commit ( ) #NEWLINE# session . expunge_all ( ) #NEWLINE# assert ( self . update_count == 1 )