def setUp(self): """ set up data used in the tests. setUp is called before each test function execution. """ import sys import os.path testpath = os.path.dirname(sys.argv[0]) for _module in sys.modules.keys(): if _module.endswith("test_ClusterQueryMap"): testpath = os.path.dirname(sys.modules[_module].__file__) self.querymap = QueryMap() #print "testpath: %s" %testpath self.querymap.read(os.path.join(testpath, "test_ClusterQueryMap.txt"))