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