def test_apply_commit(): executor = mock.Mock() uar = Repository(repo_name, '/loc/', [None], executor) uar.apply_commit('base') executor.assert_called_with("cd /loc/ && git checkout base")