def METHOD_NAME(self, patched_get_config):
    given_resource_name = "cloudformation"
    given_session = Mock()
    given_config_param = Mock()
    given_resource = Mock()
    given_config = Mock()
    given_session.resource.return_value = given_resource
    patched_get_config.return_value = given_config
    resource_generator = get_boto_resource_provider_from_session_with_config(
        given_session, param=given_config_param
    )
    resource = resource_generator(given_resource_name)
    self.assertEqual(resource, given_resource)
    patched_get_config.assert_called_with(param=given_config_param)
    given_session.resource.assert_called_with(given_resource_name, config=given_config)