体验新版 GitCode,发现更多精彩内容 >>
#!/usr/bin/python from avocado import test from avocado import job from avocado.core import exceptions
class ErrorTest(test.Test):
""" Functional test for avocado. Throw a TestError. """
def runTest(self):
""" This should throw a TestError. """ raise exceptions.TestError('This should throw a TestError') if __name__ == "__main__": job.main()