Пример #1
0
def _options():
    return enum(
        XHR_API_ENABLE=False,
        XHR_API_ALLOW_HTTP=False,
        DI_ENABLE=False,
        DI_SCAN=()
    )
Пример #2
0
def test_enum():
    e = enum(ONE='one', TWO='two')
    assert_equal(e.ONE, 'one')
    assert_equal(e.TWO, 'two')
Пример #3
0
def _options():
    return enum(XHR_API_ENABLE=False,
                XHR_API_ALLOW_HTTP=False,
                DI_ENABLE=False,
                DI_SCAN=())
Пример #4
0
def test_enum():
    e = enum(ONE='one', TWO='two')
    assert_equal(e.ONE, 'one')
    assert_equal(e.TWO, 'two')