impl_get_values with calculated values and no context should return []

This commit is contained in:
2015-11-26 19:42:33 +01:00
parent ab555966f7
commit c2a6772ec2
3 changed files with 18 additions and 9 deletions

View File

@ -35,6 +35,8 @@ def test_choiceoption_function():
assert cfg.getowner(ch) == owners.default
raises(ValueError, "cfg.ch='no'")
assert cfg.getowner(ch) == owners.default
assert ch.impl_get_values(None) == []
assert ch.impl_get_values(cfg) == ['val1', 'val2']
def test_choiceoption_calc_function():