<s> import arcpy <EOL> import os <EOL> import sys <EOL> import traceback <EOL> import TestUtilities <EOL> try : <EOL> arcpy . AddMessage ( "<STR_LIT>" ) <EOL> arcpy . ImportToolbox ( TestUtilities . toolbox , "<STR_LIT>" ) <EOL> arcpy . env . overwriteOutput = True <EOL> inputTargetPoint = os . path . join ( TestUtilities . inputGDB , "<STR_LIT>" ) <EOL> inputHorizontalCells = <NUM_LIT:10> <EOL> inputVerticalCells = <NUM_LIT:10> <EOL> inputCellWidth = <NUM_LIT:100> <EOL> inputCellHeight = <NUM_LIT:100> <EOL> inputCellUnits = "<STR_LIT>" <EOL> inputLabelStartPosition = "<STR_LIT>" <EOL> inputLabelStyle = "<STR_LIT>" <EOL> outputFeatureClass = os . path . join ( TestUtilities . scratchGDB , "<STR_LIT>" ) <EOL> arcpy . PointTargetGRG_ClearingOperations ( inputTargetPoint , inputHorizontalCells , inputVerticalCells , inputCellWidth , inputCellHeight , inputCellUnits , "<STR_LIT:#>" , inputLabelStartPosition , inputLabelStyle , outputFeatureClass ) <EOL> outputCount = int ( arcpy . GetCount_management ( outputFeatureClass ) . getOutput ( <NUM_LIT:0> ) ) <EOL> print ( "<STR_LIT>" + str ( outputCount ) ) <EOL> if ( outputCount != <NUM_LIT:100> ) : <EOL> print ( "<STR_LIT>" ) <EOL> raise Exception ( "<STR_LIT>" ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> except arcpy . ExecuteError : <EOL> msgs = arcpy . GetMessages ( ) <EOL> arcpy . AddError ( msgs ) <EOL> sys . exit ( - <NUM_LIT:1> ) <EOL> except Exception as e : <EOL> tb = sys . exc_info ( ) [ <NUM_LIT:2> ] <EOL> tbinfo = traceback . format_tb ( tb ) [ <NUM_LIT:0> ] <EOL> pymsg = "<STR_LIT>" + tbinfo + "<STR_LIT>" + str ( sys . exc_info ( ) [ <NUM_LIT:1> ] ) <EOL> msgs = "<STR_LIT>" + arcpy . GetMessages ( ) + "<STR_LIT:\n>" <EOL> arcpy . AddError ( pymsg ) <EOL> arcpy . AddError ( msgs ) <EOL> sys . exit ( - <NUM_LIT:1> ) </s>
