[lang-ref] ( dict_clear ) ( python )

def test_dict_clear():
    # d.clear
    d = { 'A': 1, 'B': 2, 'C': 3 }

    d.clear()
    assert d == {}