Exemplo n.º 1
0
def test_size_unique():
    """Recursively count the total number of unique keys and values."""
    flex = FlexDict(DATA)
    assert flex.size(unique=True) == 13
Exemplo n.º 2
0
def test_size():
    """Recursively count the total number of keys and values."""
    flex = FlexDict(DATA)
    assert flex.size() == 13