def test_hide_before():
    for f in formats:
        try:
            pass_through(
                'AABB',
                hide, 'before',
                raise_error)
        except:
            result = format(f)
            print(result)
            assert 'AABB' not in result
            assert 'raise_error' in result
        else:
            assert 0
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/tests/test_exceptions/test_formatter.py/test_hide_before/original