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