def METHOD_NAME():
    # Test regression: https://github.com/Kozea/WeasyPrint/issues/1653
    stylesheet = tinycss2.parse_stylesheet(
        '@font-face {'
        '  font-family: Gentium Hard;'
        '  src: local(Gentium Hard);'
        '  src: local(Gentium Soft),'
        '}')
    at_rule, = stylesheet
    assert at_rule.at_keyword == 'font-face'
    with capture_logs() as logs:
        font_family, src = list(preprocess_descriptors(
            'font-face', 'https://weasyprint.org/foo/',
            tinycss2.parse_declaration_list(at_rule.content)))
    assert font_family == ('font_family', 'Gentium Hard')
    assert src == ('src', (('local', 'Gentium Hard'),))
    assert len(logs) == 1
    assert 'invalid value' in logs[0]