From 1fc81e2a7f58e16d70e7d1346e31b65df1a43c23 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 13 May 2008 01:01:45 +0000 Subject: [PATCH] adding TestScripts class --- qaapi/qa/TestScripts.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 qaapi/qa/TestScripts.py diff --git a/qaapi/qa/TestScripts.py b/qaapi/qa/TestScripts.py new file mode 100644 index 0000000..57b767f --- /dev/null +++ b/qaapi/qa/TestScripts.py @@ -0,0 +1,21 @@ +import utils +from Table import Table + +class TestScript(dict): + + fields = { + 'name': None, + 'pre': None, + 'args': None, + 'post': None + } + + def __init__(self, fields = {}): + dict.__init__(self, self.fields) + self.update(fields) + +class TestScripts(Table): + def __init__(self, scripts): + scriptlist = [Script(script) for script in scripts] + Table.__init__(self, scriptlist) + -- 2.47.0