def test_FlatMap_clear(content): flatmap = FlatMap(None, init=content) flatmap.clear() assert len(flatmap) == 0 assert len(flatmap.dictionary) == 0