def test_parsekwargs_normal4():
    # Tests an implementation detail: For more than 5 elements it allocates an
    # array on the heap (for less elements in the dict it uses an array on the
    # stack).
    dct = {
        'a': default,
        'b': default,
        'c': default,
        'd': default,
        'e': 1,
        'f': 2
    }
    _parse_kwargs(dct, default)
    assert dct == {'e': 1, 'f': 2}
def test_parsekwargs_normal3():
    # All removed
    dct = {'a': default, 'b': default}
    _parse_kwargs(dct, default)
    assert dct == {}
def test_parsekwargs_normal1():
    # One removed
    dct = {'a': 10, 'b': default}
    _parse_kwargs(dct, default)
    assert dct == {'a': 10}
def test_parsekwargs_normal2():
    # No removed
    dct = {'a': 10, 'b': 20}
    _parse_kwargs(dct, default)
    assert dct == {'a': 10, 'b': 20}
def test_parsekwargs_empty1():
    dct = {}
    _parse_kwargs(dct, default)
    assert dct == {}