def test_simple_clone(sh): hg.clone("ssh://foo/foo", "bar") assert sh.called assert sh.call_args[0][0] == "hg clone ssh://foo/foo bar"
def test_simple_clone_to_rev(sh): hg.clone('ssh://foo/bar', 'baz', 'bam') assert sh.called assert sh.call_args[0][0] == 'hg clone -r bam ssh://foo/bar baz'
def test_clone(sh): hg.clone("https://foo", "bar") assert sh.called assert sh.call_args[0][0] == "hg clone https://foo bar"