human
Complete the below
def httprettified(test):

    ''''A decorator tests that use HTTPretty'
    '''
 What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    def decorate_class(klass):
        for attr in dir(klass):
            if (not attr.startswith(u'test_')):
                continue
            attr_value = getattr(klass, attr)
            if (not hasattr(attr_value, u'__call__')):
                continue
            setattr(klass, attr, decorate_callable(attr_value))
        return klass
    def decorate_callable(test):
        @functools.wraps(test)
        def wrapper(*args, **kw):
            httpretty.reset()
            httpretty.enable()
            try:
                return test(*args, **kw)
            finally:
                httpretty.disable()
        return wrapper
    if isinstance(test, ClassTypes):
        return decorate_class(test)
    return decorate_callable(test)