'Test with sys.frozen=True and a successful git-commit-id read.'

def test_frozen_ok(self, commit_file_mock, monkeypatch):

    monkeypatch.setattr(version.sys, 'frozen', True, raising=False)
    commit_file_mock.return_value = 'deadbeef'
    assert (version._git_str() == 'deadbeef')
