def METHOD_NAME(self):
    repo = mock.Mock(spec=Repository)
    commit = CommitDir(repo)
    with pytest.raises(GithubException):
        commit._validate_dirs("bogus", None)
    _, repo_dir = commit._validate_dirs(".", None)
    assert repo_dir == ""
    _, repo_dir = commit._validate_dirs(".", "./test/")
    assert repo_dir == "test"