def gen_html(length=10):

    # Validate length argument
    _is_positive_int(length)

    random.seed()
    html_tag = random.choice(HTML_TAGS)
    output_string = u'<{0}>{1}</{2}>'.format(
        html_tag, gen_string("alpha", length), html_tag)

    return _make_unicode(output_string)


# Backward Compatibility ------------------------------------------------------


# Code borrowed from http://code.activestate.com/recipes/391367-deprecated/
Create a base class with a metaclass.
dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py/gen_html--crossover with--dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/with_metaclass