def test_thin__sel_5000(self): arcpy.SiteReductionTool_ArcSDM(self.TRAINING_SITE_LYR, True, "5000", "", "") desc = arcpy.Describe(self.TRAINING_SITE_LYR_STR) sel_count = len(desc.fidSet.split(";")) self.assertEqual(sel_count, 14)
def test_random_sel_100(self): arcpy.SiteReductionTool_ArcSDM(self.TRAINING_SITE_LYR, False, "", True, "100") desc = arcpy.Describe(self.TRAINING_SITE_LYR_STR) sel_count = len(desc.fidSet.split(";"))
def test_thin_random_sel_1000_80(self): arcpy.SiteReductionTool_ArcSDM(self.TRAINING_SITE_LYR, True, "1000", True, "80") desc = arcpy.Describe(self.TRAINING_SITE_LYR_STR) sel_count = len(desc.fidSet.split(";")) self.assertEqual(sel_count, 20)