def METHOD_NAME(self):
    """
    Test that CUSTOM_DOMAIN from FINANCIAL_REPORTS is used to construct file url. instead of domain defined via
    AWS_S3_CUSTOM_DOMAIN setting.
    """
    with override_settings(FINANCIAL_REPORTS={
        'STORAGE_TYPE': 's3',
        'BUCKET': 'edx-financial-reports',
        'CUSTOM_DOMAIN': 'edx-financial-reports.s3.amazonaws.com',
        'ROOT_PATH': 'production',
    }):
        report_store = ReportStore.from_config(config_name="FINANCIAL_REPORTS")
        # Make sure CUSTOM_DOMAIN from FINANCIAL_REPORTS is used to construct file url
        assert 'edx-financial-reports.s3.amazonaws.com' in report_store.storage.url('')