def test_favour_specificity_over_quality():
    server_mimetypes = ['application/json', 'application/marcxml+xml']
    client_mimetypes = parse_accept_header('text/plain, application/json;q=0.5, */*', MIMEAccept)
    assert ('application/json' == ContentNegotiator.match_by_accept(server_mimetypes, client_mimetypes))
def test_favour_specificity_over_quality():
    server_mimetypes = ['application/json', 'application/marcxml+xml']
    client_mimetypes = parse_accept_header('text/plain, application/json;q=0.5, */*', MIMEAccept)
    assert ('application/json' == ContentNegotiator.match_by_accept(server_mimetypes, client_mimetypes))