# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():
# 
# Path: revolver/core.py
# VERSION = '0.0.5'
# def put(*args, **kwargs):
# def run(*args, **kwargs):
# def sudo(*args, **kwargs):


from fabric import context_managers as fabric_ctx
from fudge import patch
from revolver import contextmanager as ctx
from revolver.core import env
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement




def test_revolver_is_just_a_wrapper():
    assert ctx.cd == fabric_ctx.cd
    assert ctx.hide == fabric_ctx.hide
    assert ctx.lcd == fabric_ctx.lcd
    assert ctx.path == fabric_ctx.path
    assert ctx.prefix == fabric_ctx.prefix
    assert ctx.settings == fabric_ctx.settings
    assert ctx.show == fabric_ctx.show


def test_sudo_changes_env_flag():
    with ctx.sudo():

# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():
# 
# Path: revolver/core.py
# VERSION = '0.0.5'
# def put(*args, **kwargs):
# def run(*args, **kwargs):
# def sudo(*args, **kwargs):


# Path: revolver/test/contextmanager_test.py
from fabric import context_managers as fabric_ctx
from fudge import patch
from revolver import contextmanager as ctx
from revolver.core import env

# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement




def test_revolver_is_just_a_wrapper():
    assert ctx.cd == fabric_ctx.cd
    assert ctx.hide == fabric_ctx.hide
    assert ctx.lcd == fabric_ctx.lcd
    assert ctx.path == fabric_ctx.path
    assert ctx.prefix == fabric_ctx.prefix
    assert ctx.settings == fabric_ctx.settings
    assert ctx.show == fabric_ctx.show


def test_sudo_changes_env_flag():
    with ctx.sudo():

        assert env.sudo_forced