def test_propclass_defaults_propertyNames(): defs = Properties({"key": "lock", "horse": "orange"}) p = Properties({"key": "value", "apple": "zebra"}, defaults=defs) names = p.propertyNames() assert isinstance(names, collections.Iterator) assert sorted(names) == ["apple", "horse", "key"]
def test_propclass_propertyNames(): p = Properties({"key": "value", "apple": "zebra", "foo": "bar"}) names = p.propertyNames() assert isinstance(names, collections.Iterator) assert sorted(names) == ["apple", "foo", "key"]