def METHOD_NAME(context):
    with mock.patch(
        "paasta_tools.utils.format_timestamp",
        autospec=True,
        return_value=context.force_bounce_timestamp,
    ):
        expected_tag = get_paasta_tag_from_deploy_group(
            identifier="test-cluster.test_instance", desired_state="deploy"
        )
    expected_formatted_tag = format_tag(expected_tag).encode("UTF-8")
    assert expected_formatted_tag in context.test_git_repo.refs
    assert (
        context.test_git_repo.refs[expected_formatted_tag]
        == context.expected_commit_as_bytes
    )