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