#NEWLINE# def test_false_on_base( self ) : #NEWLINE# #INDENT# class Ding ( object ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# class Bat ( Ding ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# mapper ( Ding , t1 , polymorphic_on = t1 . c . type , polymorphic_identity = False ) #NEWLINE# mapper ( Bat , inherits = Ding , polymorphic_identity = True ) #NEWLINE# sess = create_session ( ) #NEWLINE# d1 = Ding ( ) #NEWLINE# sess . add ( self ) #NEWLINE# sess . flush ( ) #NEWLINE# assert ( d1 . type is False ) #NEWLINE# sess . expunge_all ( ) #NEWLINE# assert ( sess . query ( Ding ) . one ( ) is not None )