#NEWLINE# def test_drilldown_html( self ) : #NEWLINE# #INDENT# for ( idx , genre ) in enumerate ( Genre . objects . all ( ) ) : #NEWLINE# #INDENT# for i in range ( genre ) : #NEWLINE# #INDENT# game = genre . game_set . create ( name = ( 'Game %s' % i ) ) #NEWLINE# genre . games_m2m . add ( game ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( self . render_for_node ( 1 ) , '[1:],2:1,6:5' ) #NEWLINE# self . assertEqual ( self . render_for_node ( 2 ) , '1:,[2:],3:2,4:3,5:4' ) #NEWLINE# self . assertEqual ( self . render_for_node ( 1 , cumulative = True ) , '[1:],2:10,6:18' ) #NEWLINE# self . assertEqual ( self . render_for_node ( 2 , cumulative = True ) , '1:,[2:],3:2,4:3,5:4' ) #NEWLINE# self . assertEqual ( self . render_for_node ( 1 , m2m = True ) , '[1:],2:1,6:5' ) #NEWLINE# self . assertEqual ( self . render_for_node ( 2 , m2m = True ) , '1:,[2:],3:2,4:3,5:4' ) #NEWLINE# self . assertEqual ( self . render_for_node ( 1 , cumulative = True , m2m = True ) , '[1:],2:10,6:18' ) #NEWLINE# self . assertEqual ( self . render_for_node ( 2 , cumulative = True , m2m = True ) , '1:,[2:],3:2,4:3,5:4' )