def _truncate_bitmap(what):

    for i in xrange(len(what) - 1, -1, -1):
        if what[i] != '\x00':
            break
    return ''.join(what[0 : i + 1])
This helper function tests all parameters.
dataset/ETHPy150Open catap/namebench/nb_third_party/dns/rdata.py/_truncate_bitmap--crossover with--dataset/ETHPy150Open sobolevn/django-split-settings/example/tests/test_import.py/TestModuleImport._assert_types