#NEWLINE# def test_count_incidents( self , toolboxPath ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( Configuration . DEBUG == True ) : #NEWLINE# #INDENT# print ( '     CountIncidentsByLOCTestCase.test_count_incidents' ) #NEWLINE# #UNINDENT# arcpy . ImportToolbox ( toolboxPath , 'iaTools' ) #NEWLINE# outputCountFeatures = os . path . join ( Configuration . incidentScratchGDB , 'outputCount' ) #NEWLINE# runToolMsg = 'Running tool (Count Incidents By LOC)' #NEWLINE# arcpy . AddMessage ( runToolMsg ) #NEWLINE# Configuration . Logger . info ( runToolMsg ) #NEWLINE# arcpy . CountIncidentsByLOC_iaTools ( self . inputPointsFeatures , result . inputLinesFeatures , '#' , outputCountFeatures ) #NEWLINE# result = arcpy . GetCount_management ( outputCountFeatures ) #NEWLINE# featureCount = int ( result . getOutput ( 0 ) ) #NEWLINE# self . assertEqual ( featureCount , int ( 2971 ) ) #NEWLINE# #UNINDENT# except arcpy . ExecuteError : #NEWLINE# #INDENT# UnitTestUtilities . handleArcPyError ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# UnitTestUtilities . handleGeneralError ( )