def test_disabled_object(): dr.set_enabled(Uname, False) assert not dr.is_enabled(Uname)
def test_disabled_string(): dr.set_enabled("insights.core.context.HostContext", False) assert not dr.is_enabled(HostContext)
def test_enabled_object(): assert dr.is_enabled(Uname)
def test_set_enabled_object(): dr.set_enabled(HostContext) assert dr.is_enabled(HostContext)
def test_enabled_string(): assert dr.is_enabled("insights.core.context.HostContext")