def test_find_git_root_barfs_on_non_repo(): with util.mk_tmpdir() as temp_dir: find_git_root(temp_dir)
def test_ls_barfs_on_non_git_repo(): with util.mk_tmpdir() as temp_dir: project.ls(temp_dir)