def METHOD_NAME(self):
    # GIVEN
    expected_response = Mock()
    @partial_step(save_to_session=True)
    def decorated_func(*args, **kwargs):
        return expected_response
    # WHEN
    with patch(
        "social_core.pipeline.partial.partial_prepare",
        return_value=self.mock_current_partial,
    ):
        response = decorated_func(
            self.mock_strategy, self.mock_backend, self.mock_pipeline_index
        )
        # THEN
        self.assertEqual(expected_response, response)
        self.assertEqual(1, self.mock_partial_store.call_count)
        self.assertEqual(
            (self.mock_current_partial,), self.mock_partial_store.call_args[0]
        )
        self.assertEqual(1, self.mock_session_set.call_count)
        self.assertEqual(
            (PARTIAL_TOKEN_SESSION_NAME, self.mock_current_partial_token),
            self.mock_session_set.call_args[0],
        )