adds test for an API
[tiramisu.git] / test / test_option_type.py
index 6f1970a..3537d6d 100644 (file)
@@ -75,6 +75,16 @@ def test_group_is_hidden():
         prop = err.proptype
     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():
     descr = make_description()