def METHOD_NAME(mock_secret_provider):
    with mock.patch(
        "paasta_tools.secret_providers.vault.get_secret_name_from_ref", autospec=True
    ) as mock_get_secret_name_from_ref, mock.patch(
        "paasta_tools.secret_providers.vault.get_plaintext", autospec=False
    ) as mock_get_plaintext:
        mock_get_plaintext.return_value = b"SECRETSQUIRREL"
        mock_env = {
            "MY_VAR": "SECRET(test-secret)",
            "ANOTHER_VAR": "SECRET(another-secret)",
        }
        mock_get_secret_name_from_ref.return_value = "secret_name"
        ret = mock_secret_provider.decrypt_environment(
            environment=mock_env, some="kwarg"
        )
        mock_get_secret_name_from_ref.assert_has_calls(
            [mock.call("SECRET(test-secret)"), mock.call("SECRET(another-secret)")]
        )
        expected = {"MY_VAR": "SECRETSQUIRREL", "ANOTHER_VAR": "SECRETSQUIRREL"}
        assert ret == expected