'Returns the timeout value set on this test. Checks on the instance
first, then the class, then the module, then packages. As soon as it
finds something with a C{timeout} attribute, returns that. Returns
L{util.DEFAULT_TIMEOUT_DURATION} if it cannot find anything. See
L{TestCase} docstring for more details.'

def getTimeout(self):

    timeout = util.acquireAttribute(self._parents, 'timeout', util.DEFAULT_TIMEOUT_DURATION)
    try:
        return float(timeout)
    except (ValueError, TypeError):
        warnings.warn("'timeout'    attribute    needs    to    be    a    number.", category=DeprecationWarning)
        return util.DEFAULT_TIMEOUT_DURATION
