# Path: revolver/file.py
# def temp(mode=None, owner=None, group=None):
# def remove(location, recursive=False, force=True):
# def touch(location, mode=None, owner=None, group=None):
# def copy(source, destination, force=True, mode=None, owner=None, group=None):
# 
# Path: revolver/test/utils.py
# def assert_contain_function_wrapped(haystack, needle):
#     assert haystack.__module__ == needle.__module__
#     assert haystack.__name__ == needle.__name__
# 
# def run_result(stdout="", stderr="", return_code=0):
#     result = fabric.operations._AttributeString(stdout)
#     result.stderr = stderr
#     result.return_code = return_code
#     result.failed = return_code != 0
#     result.succeeded = return_code == 0
#     return result


from fudge import patch
from fabric.contrib import files as fabric_files
from revolver import file
from .utils import assert_contain_function_wrapped, run_result
import cuisine
import fabric
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, with_statement





def test_revolver_is_just_a_wrapper():
    assert file.attributes == cuisine.file_attribs
    assert file.attributes_get == cuisine.file_attribs_get
    assert file.ensure == cuisine.file_ensure
    assert file.exists == cuisine.file_is_file
    assert file.is_link == cuisine.file_is_link
    assert file.link == cuisine.file_link
    assert file.read == cuisine.file_read
    assert file.read_local == cuisine.file_local_read
    assert file.update == cuisine.file_update


# Path: revolver/file.py
# def temp(mode=None, owner=None, group=None):
# def remove(location, recursive=False, force=True):
# def touch(location, mode=None, owner=None, group=None):
# def copy(source, destination, force=True, mode=None, owner=None, group=None):
# 
# Path: revolver/test/utils.py
# def assert_contain_function_wrapped(haystack, needle):
#     assert haystack.__module__ == needle.__module__
#     assert haystack.__name__ == needle.__name__
# 
# def run_result(stdout="", stderr="", return_code=0):
#     result = fabric.operations._AttributeString(stdout)
#     result.stderr = stderr
#     result.return_code = return_code
#     result.failed = return_code != 0
#     result.succeeded = return_code == 0
#     return result


# Path: revolver/test/file_test.py
from fudge import patch
from fabric.contrib import files as fabric_files
from revolver import file
from .utils import assert_contain_function_wrapped, run_result
import cuisine
import fabric

# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, with_statement





def test_revolver_is_just_a_wrapper():
    assert file.attributes == cuisine.file_attribs
    assert file.attributes_get == cuisine.file_attribs_get
    assert file.ensure == cuisine.file_ensure
    assert file.exists == cuisine.file_is_file
    assert file.is_link == cuisine.file_is_link
    assert file.link == cuisine.file_link
    assert file.read == cuisine.file_read
    assert file.read_local == cuisine.file_local_read
    assert file.update == cuisine.file_update


    assert_contain_function_wrapped(file.append, fabric_files.append)