def test_repo_operations(self): teardown_repo() res = git.clone( 'git://github.com/markstory/lint-review.git', clone_path) assert res, 'Cloned successfully.' assert git.exists(clone_path), 'Cloned dir should be there.' git.destroy(clone_path) assert not(git.exists(clone_path)), 'Cloned dir should be gone.'
def test_repo_operations(): path = settings['WORKSPACE'] + '/test_clone' assert not (git.exists(path)), 'Directory should not exist.' res = git.clone('git://github.com/markstory/lint-review.git', path) assert res, 'Cloned successfully.' assert git.exists(path), 'Cloned dir should be there.' git.destroy(path) assert not (git.exists(path)), 'Cloned dir should be gone.'
def test_repo_operations(): path = settings["WORKSPACE"] + "/test_clone" assert not (git.exists(path)), "Directory should not exist." res = git.clone("git://github.com/markstory/lint-review.git", path) assert res, "Cloned successfully." assert git.exists(path), "Cloned dir should be there." git.destroy(path) assert not (git.exists(path)), "Cloned dir should be gone."
def test_repo_operations(): path = settings['WORKSPACE'] + '/test_clone' assert not(git.exists(path)), 'Directory should not exist.' res = git.clone( 'git://github.com/markstory/lint-review.git', path) assert res, 'Cloned successfully.' assert git.exists(path), 'Cloned dir should be there.' git.destroy(path) assert not(git.exists(path)), 'Cloned dir should be gone.'
def test_repo_clone_no_repo(): path = settings['WORKSPACE'] + '/test_clone' git.clone( 'git://github.com/markstory/it will never work.git', path)
def test_repo_clone_no_repo(): git.clone('git://github.com/markstory/it will never work.git', clone_path)
def test_repo_clone_no_repo(): path = settings["WORKSPACE"] + "/test_clone" git.clone("git://github.com/markstory/it will never work.git", path)