def METHOD_NAME():
    import sys
    log = []
    try:
        log.append("raise")
        raise ValueError("1")
    except:
        assert sys.exc_info()[0] == ValueError
        with Context(log, True, False) as sample:
            assert sys.exc_info()[0] == ValueError
            log.append("with body")
        assert sys.exc_info()[0] == ValueError
        log.append("except exit")
    assert log == [  "raise"
                   , "__enter__"
                   , "with body"
                   , "type: None"
                   , "value: None"
                   , "except exit"], "was: %s" % log