#NEWLINE# def test_get_formset_kwargs( self ) : #NEWLINE# #INDENT# media_inline = MediaInline ( Media , AdminSite ( ) ) #NEWLINE# formset = media_inline . get_formset ( request ) #NEWLINE# self . assertEqual ( formset . max_num , None ) #NEWLINE# self . assertEqual ( formset . can_order , False ) #NEWLINE# formset = media_inline . get_formset ( request , max_num = 100 , can_order = True ) #NEWLINE# self . assertEqual ( formset . max_num , 100 ) #NEWLINE# self . assertEqual ( formset . can_order , True )