def METHOD_NAME(
    self, mock_storeConfig, mock_load_provider
):
    """
    save provider from ini file
    """
    mock_storeConfig.return_value = True
    mock_load_provider.return_value = self.MockedFileSMSProvider()
    params = self.testdata[2]
    provider_type = params["type"]
    provider_name = params["name"]
    provider_prefix = "linotp.SMSProvider.managed_one"
    res = save_new_provider(provider_type, provider_name, params)
    try:
        mock_storeConfig.assert_any_call(
            key=provider_prefix + "." + "Config",
            val='{"file":"/tmp/newone"}',
            typ="password",
        )
        mock_storeConfig.assert_any_call(
            key=provider_prefix + "." + "Managed",
            val=params["managed"],
            typ=None,
        )
        mock_storeConfig.assert_any_call(
            key=provider_prefix + "." + "Timeout", val="301", typ=None
        )
        mock_storeConfig.assert_any_call(
            key=provider_prefix,
            val="smsprovider.FileSMSProvider.FileSMSProvider",
        )
    except AssertionError as aserror:
        call_args_list = mock_storeConfig.call_args_list
        raise Exception(
            "Error was: %r, calls were: %r"
            % (aserror.message, call_args_list)
        )
    assert res == (True, {})