adds test for an API
This commit is contained in:
parent
f0ecbf4914
commit
3c36e05d82
2 changed files with 11 additions and 1 deletions
|
@ -75,6 +75,16 @@ def test_group_is_hidden():
|
||||||
prop = err.proptype
|
prop = err.proptype
|
||||||
assert 'hidden' in prop
|
assert 'hidden' in prop
|
||||||
|
|
||||||
|
def test_extend_properties():
|
||||||
|
descr = make_description()
|
||||||
|
config = Config(descr)
|
||||||
|
setting = config.cfgimpl_get_settings()
|
||||||
|
config.read_write()
|
||||||
|
gc = config.unwrap_from_path('gc')
|
||||||
|
config.unwrap_from_path('gc.dummy')
|
||||||
|
setting[gc].extend(['hidden', 'user_defined_property'])
|
||||||
|
assert 'hidden' in setting[gc]
|
||||||
|
assert 'user_defined_property' in setting[gc]
|
||||||
|
|
||||||
def test_group_is_hidden_multi():
|
def test_group_is_hidden_multi():
|
||||||
descr = make_description()
|
descr = make_description()
|
||||||
|
|
|
@ -289,7 +289,7 @@ class Property(object):
|
||||||
:param propnames: an iterable made of property names
|
:param propnames: an iterable made of property names
|
||||||
:type propnames: iterable of string
|
:type propnames: iterable of string
|
||||||
"""
|
"""
|
||||||
for propname in propname:
|
for propname in propnames:
|
||||||
self.append(propname)
|
self.append(propname)
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
|
Loading…
Reference in a new issue