give config param in call() a default
authorTony Mack <tmack@cs.princeton.edu>
Fri, 18 Jan 2008 17:20:42 +0000 (17:20 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 18 Jan 2008 17:20:42 +0000 (17:20 +0000)
qaapi/qa/Test.py

index b1b8125..eaf81fc 100644 (file)
@@ -2,6 +2,7 @@ import sys, os
 from types import *
 from qa import utils
 from qa.logger import log
+from qa.Config import Config
 
 class Test:
     """
@@ -21,7 +22,7 @@ class Test:
        """
        return True
 
-    def __init__(self, config):
+    def __init__(self, config = Config()):
        self.name = self.__class__.__name__
        self.path=os.path.dirname(sys.argv[0])
        self.config = config