def testLandUseMapOptions(self): """ FIXME """ try: utils.testFileIsReadable(self.landUseMap1Filename()) utils.testFileIsReadable(self.landUseMap2Filename()) except AssertionError, exception: raise
def testMask(self): """ FIXME """ try: if self.maskIsSet(): utils.testFileIsReadable(self.mask()) utils.testRasterHasValueScale(self.mask(), ["boolean"]) except AssertionError, exception: raise
def testVariablesOptions(self): try: for tuple in self.categoricalVariables(): utils.testFileIsReadable(tuple[0]) utils.testRasterIsCategorical(tuple[0]) for variable in self.continuousVariables(): utils.testFileIsReadable(variable) utils.testRasterIsContinuous(variable) except AssertionError, exception: raise
def testValidationSetOption(self): """ FIXME """ assert self.validationSet() try: if self.validationSetIsFilename(): utils.testFileIsReadable(self.validationSet()) elif self.validationSetIsPercentage(): utils.testStringIsPositiveFloat(self.validationSet()) utils.testNumberWithinRange(float(self.validationSet()), 0.0, 100.0) except AssertionError, exception: raise