def test_choose_default_if_no_query_and_no_header():
    server_mimetypes = ['application/json', 'application/marcxml+xml']
    client_mimetypes = parse_accept_header('', MIMEAccept)
    formats_map = {'json': 'application/json', 'marcxml': 'application/marcxml+xml'}
    fmt = None
    assert ('application/json' == ContentNegotiator.match(server_mimetypes, client_mimetypes, formats_map, fmt, default='application/json'))
def test_choose_default_if_no_query_and_no_header():
    server_mimetypes = ['application/json', 'application/marcxml+xml']
    client_mimetypes = parse_accept_header(, MIMEAccept)
    formats_map = {'json': 'application/json', 'marcxml': 'application/marcxml+xml'}
    fmt = None
    assert ('application/json' == ContentNegotiator.match(server_mimetypes, client_mimetypes, formats_map, fmt, default='application/json'))