def METHOD_NAME(cost_explorer_stubber):
    expected_params = {
        'Metrics': ['UnblendedCost'],
        'Granularity': 'MONTHLY',
        'TimePeriod': {
            'Start': '2022-07-01',
            'End': '2022-08-01',
        },
    }
    mock_service_response = {
        'ResultsByTime': [
            {
                'Total': {
                    'UnblendedCost': {
                        'Amount': '100.2',
                    },
                },
            },
        ],
    }
    cost_explorer_stubber.add_response(method='get_cost_and_usage', expected_params=expected_params,
                                       service_response=mock_service_response)
    assert scale_cluster.get_month_to_date_spending(date(2022, 7, 15)) == 100.2