Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestCaseResult(object):
- # status of test
- FAIL='FAIL'
- PASS='PASS'
- DIFF='DIFF'
- STATUS_LIST = [TestResult.PASS, TestResult.FAIL, TestResult.DIFF]
- class File(object):
- def __init__(self, name, content):
- self._name = name
- self._content = content
- @property
- def name(self):
- return self._name
- @property
- def content(self):
- return self._content
- def __init__(self, name, status, diff=None, log=None, stdout=None, stderr=None):
- self._name = name
- self._status = status
- self._diff = diff
- self._log = log
- self._stdout = stdout
- self._stderr = stderr
- @property
- def name(self):
- return self._name
- @property
- def status(self):
- return self._status
- @property
- def diff(self):
- return self._diff
- @property
- def log(self):
- return self._log
- @property
- def stdout(self):
- return self._stdout
- @property
- def stderr(self):
- return self._stderr
- @staticmethod
- def build(name):
- def result(*args, **kwargs):
- return TestCaseResult(name,*args, **kwargs)
- return result
Advertisement
Add Comment
Please, Sign In to add comment