#NEWLINE# def test_get_descendants( self ) : #NEWLINE# #INDENT# self . assertEqual ( [ c . pk for c in Category . objects . get ( name = 'Nintendo Wii' ) . get_descendants ( include_self = False ) ] , [ c . pk for c in Category . objects . filter ( name = 'Nintendo Wii' ) . get_descendants ( include_self = False ) ] ) #NEWLINE# self . assertEqual ( [ c . pk for c in Category . objects . get ( name = 'Nintendo Wii' ) . get_descendants ( include_self = True ) ] , [ c . pk for c in Category . objects . filter ( name = 'Nintendo Wii' ) . get_descendants ( include_self = True ) ] )