def test_get_code_dir(self): url = "[email protected]:Foo/BAR.git" expect = os.path.expanduser('~/code/BAR') eq_(expect, _get_code_dir_from_url(url))
def test_get_code_dir(self): url = "[email protected]:Foo/BAR.git" expect = os.path.expanduser('~/code/BAR') eq_(expect, _get_code_dir_from_url(url))
def mock_git_command(url): dir_ = _get_code_dir_from_url(url) os.mkdir(dir_) return dir_
def mock_git_command(url): dir_ = _get_code_dir_from_url(url) os.mkdir(dir_) return dir_