use python-coverage to delete dead part of code
This commit is contained in:
@ -869,3 +869,10 @@ def test_masterslaves_callback_description():
|
||||
assert cfg.od.st.st1.st1 == ['yes']
|
||||
assert cfg.od.st.st1.st2 == ['yes']
|
||||
assert cfg.getowner(st1) == owner
|
||||
|
||||
|
||||
def test_re_set_callback():
|
||||
st1 = StrOption('st1', "", multi=True)
|
||||
st2 = StrOption('st2', "", multi=True)
|
||||
st2.impl_set_callback(return_value, {'': ((st1, False),)})
|
||||
raises(ConfigError, "st2.impl_set_callback(return_value, {'': ((st1, False),)})")
|
||||
|
Reference in New Issue
Block a user