def TestData(parent=None, source=None, include_suites=None, warn_on_skipped=False, extensions=None):
 if os.path.isdir(source):
  return TestDataDirectory(parent, source).populate(include_suites, warn_on_skipped, extensions)
 return TestCaseFile(parent, source).populate()

def TestData ( parent = None , source = None , include_suites = None , warn_on_skipped = False , extensions = None ) : if os . path . isdir ( source ) : return TestDataDirectory ( parent , source ) . populate ( include_suites , warn_on_skipped , extensions ) return TestCaseFile ( parent , source ) . populate ( )
parses a file or directory to a corresponding model object .