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