Beispiel #1
0
def test_disabled_object():
    dr.set_enabled(Uname, False)
    assert not dr.is_enabled(Uname)
Beispiel #2
0
def test_disabled_string():
    dr.set_enabled("insights.core.context.HostContext", False)
    assert not dr.is_enabled(HostContext)
Beispiel #3
0
def test_enabled_object():
    assert dr.is_enabled(Uname)
Beispiel #4
0
def test_set_enabled_object():
    dr.set_enabled(HostContext)
    assert dr.is_enabled(HostContext)
Beispiel #5
0
def test_enabled_string():
    assert dr.is_enabled("insights.core.context.HostContext")