예제 #1
0
 def testLandUseMapOptions(self):
     """
 FIXME
 """
     try:
         utils.testFileIsReadable(self.landUseMap1Filename())
         utils.testFileIsReadable(self.landUseMap2Filename())
     except AssertionError, exception:
         raise
예제 #2
0
 def testMask(self):
     """
 FIXME
 """
     try:
         if self.maskIsSet():
             utils.testFileIsReadable(self.mask())
             utils.testRasterHasValueScale(self.mask(), ["boolean"])
     except AssertionError, exception:
         raise
예제 #3
0
 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
예제 #4
0
    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