예제 #1
0
    def testModelSetOption(self):
        """
    FIXME
    """
        assert self.modelSet()

        try:
            utils.testStringIsPositiveFloat(self.modelSet())
        except AssertionError, exception:
            raise
예제 #2
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