#NEWLINE# def test_all_delete( self ) : #NEWLINE# #INDENT# ' Verify base formset honors DELETE field ' #NEWLINE# self . test_init_database ( ) #NEWLINE# data = dict ( self . data ) #NEWLINE# data [ 'form-INITIAL_FORMS' ] = 4 #NEWLINE# data . update ( dict ( ( ( ( 'form-%d-id' % i ) , user . pk ) for ( i , user ) in enumerate ( User . objects . all ( ) ) ) ) ) #NEWLINE# data . update ( self . delete_all_ids ) #NEWLINE# formset = self . NormalFormset ( data , queryset = User . objects . all ( ) ) #NEWLINE# self . assertTrue ( formset . is_valid ( ) ) #NEWLINE# self . assertEqual ( len ( formset . save ( ) ) , 0 ) #NEWLINE# self . assertEqual ( len ( User . objects . all ( ) ) , 0 )