#NEWLINE# def __testDeleteRelatedCounting( self ) : #NEWLINE# #INDENT# 'Test delete on models with related models. This is a crucial\ntest as it involves lots of operations and consistency checks.' #NEWLINE# NP = 20 #NEWLINE# N = ( Instrument . objects . all ( ) . count ( ) + NP ) #NEWLINE# self . makePositions ( NP ) #NEWLINE# Instrument . objects . all ( ) . delete ( ) #NEWLINE# self . assertEqual ( Instrument . objects . all ( ) . count ( ) , 0 ) #NEWLINE# self . assertEqual ( Position . objects . all ( ) . count ( ) , 0 )