def clean_db():
 logging.info('Cleaning Zone')
 Zone.objects.all().delete()
 logging.info('Cleaning Facility')
 Facility.objects.all().delete()
 logging.info('Cleaning Device')
 Device.objects.all().delete()

def clean_db ( ) : logging . info ( 'Cleaning Zone' ) Zone . objects . all ( ) . delete ( ) logging . info ( 'Cleaning Facility' ) Facility . objects . all ( ) . delete ( ) logging . info ( 'Cleaning Device' ) Device . objects . all ( ) . delete ( )
clean database .