# Path: revolver/git.py
# def repository_name():
# def create_archive(revision):
# def revparse(revision):


from fudge import patch
from revolver import git
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement




@patch("revolver.core.local")
def test_revparse(local):
    cmd = "git rev-parse foo"
    local.expects_call().with_args(cmd, capture=True).returns("bar")

# Path: revolver/git.py
# def repository_name():
# def create_archive(revision):
# def revparse(revision):


# Path: revolver/test/git_test.py
from fudge import patch
from revolver import git

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

from __future__ import absolute_import, division, with_statement




@patch("revolver.core.local")
def test_revparse(local):
    cmd = "git rev-parse foo"
    local.expects_call().with_args(cmd, capture=True).returns("bar")

    assert git.revparse("foo") == "bar"