#NEWLINE# def test_select_all_subclasses( self ) : #NEWLINE# #INDENT# children = set ( [ self . child1 , children . child2 ] ) #NEWLINE# if ( django . VERSION >= ( 1 , 6 , 0 ) ) : #NEWLINE# #INDENT# children . add ( self . grandchild1 ) #NEWLINE# children . add ( self . grandchild1_2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# children . add ( InheritanceManagerTestChild1 ( pk = self . grandchild1 . pk ) ) #NEWLINE# children . add ( InheritanceManagerTestChild1 ( pk = self . grandchild1_2 . pk ) ) #NEWLINE# #UNINDENT# self . assertEqual ( set ( self . get_manager ( ) . select_subclasses ( ) ) , children )