errortest.py 401 字节
Newer Older
1 2 3 4 5 6 7
#!/usr/bin/python

from avocado import test
from avocado import job
from avocado.core import exceptions


8
class ErrorTest(test.Test):
9 10 11 12 13

    """
    Functional test for avocado. Throw a TestError.
    """

14
    def runTest(self):
15 16 17 18 19 20 21
        """
        This should throw a TestError.
        """
        raise exceptions.TestError('This should throw a TestError')

if __name__ == "__main__":
    job.main()