Exemplo n.º 1
0
def test_get():
    from proteus import Context
    Context.set(ContextObject())
    ct = Context.get()
    check_eq(ct)
    try:
        ct.T = 11.0
    except Exception as e:
        assert (type(e) is AttributeError)
Exemplo n.º 2
0
def test_get():
    from proteus import Context
    Context.set(ContextObject())
    ct = Context.get()
    check_eq(ct)
    try:
        ct.T=11.0
    except Exception as e:
        assert(type(e) is AttributeError)
Exemplo n.º 3
0
def test_set():
    from proteus import Context
    Context.set(ContextObject())
    check_eq(Context.context)
Exemplo n.º 4
0
def test_get():
    from proteus import Context
    Context.set(ContextObject())
    ct = Context.get()
    check_eq(ct)
Exemplo n.º 5
0
def test_set():
    from proteus import Context
    Context.set(ContextObject())
    check_eq(Context.context)
Exemplo n.º 6
0
def test_get():
    from proteus import Context
    Context.set(ContextObject())
    ct = Context.get()
    check_eq(ct)