19 This is a helper class that can be used instead of TestSupport.Base.getDataDirectory()
20 It allows you to access the Tests Data directory from a unittest, no matter whether it's wrapped in a TestCenter test
21 or whether you call it directly from python.
22 In the latter case, the Data directory is expected to be in the folder where your python TestCase is defined.
23 To access the folder, use self.getTestSupportDataDirectory() or self.getFileInTestSupportDataDirectory("example.txt")
47 except (ImportError, Exception):
55 return getTestSupportDataDirectory()
58 sourcePath = inspect.getfile(testCaseClass)
59 return os.path.join(os.path.dirname(sourcePath),
"Data")
getTestSupportDataDirectory(cls)
getFileInTestSupportDataDirectory(cls, filename)
_getDataDirectory(testCaseClass)