def format_heading(level, text):
    underlining = ['=', '-', '~', ][level-1] * len(text)
    return '%s\n%s\n\n' % (text, underlining)
Testing command response handling
dataset/ETHPy150Open Netflix/security_monkey/generate_docs.py/format_heading--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_dict.py/ParamTest.testParseParam