def ConvertDNS2Binary(name):
    binary = ""
    domain_parts = name.split(".")
    for p in domain_parts:
        binary += "%02x" % (len(p))     # length of Domain Name Segements
        binary += binascii.b2a_hex(p)
    # final zero size octet following RFC 1035
    binary += "00"
    return binary
Loads JSON data and returns a list of Test objects it contains.
dataset/ETHPy150Open HenriWahl/dhcpy6d/dhcpy6/Helpers.py/ConvertDNS2Binary--crossover with--dataset/ETHPy150Open bslatkin/dpxdt/dpxdt/tools/diff_my_images.py/load_tests