#NEWLINE# def test_warning_on_sub( self ) : #NEWLINE# #INDENT# ( parent , child ) = self . _fixture ( ) #NEWLINE# class P ( object ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# class C ( P ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# mapper ( P , parent ) #NEWLINE# assert_raises_message ( sa_exc . SAWarning , "Could not assemble any primary keys for locally mapped table 'child' - no rows will be persisted in this Table." , mapper , C , child , inherits = P )