mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Christophe Sovant
20.51.2008 a35b2ccd6bcbbbd431d02a89f2bf247df1660159
opends/tests/shared/python/common.py
@@ -35,6 +35,7 @@
            "report_generation", 
            "compare_file", 
            "is_windows_platform", 
            "create_property_table",
            "exception_thrown" ]
class format_testcase:
@@ -192,3 +193,16 @@
      return Boolean.TRUE
    else:
      return Boolean.FALSE
def create_property_table(output, separator):
    table = {}
    for line in output.splitlines():
      key = line.split(separator)[0].strip()
      try:
        value = line.split(separator)[1].strip()
      except IndexError:
        value = '-'
      table[key] = value
    return table