Beispiel #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)
Beispiel #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)
Beispiel #3
0
def test_set():
    from proteus import Context
    Context.set(ContextObject())
    check_eq(Context.context)
Beispiel #4
0
def test_get():
    from proteus import Context
    Context.set(ContextObject())
    ct = Context.get()
    check_eq(ct)
Beispiel #5
0
def test_set():
    from proteus import Context
    Context.set(ContextObject())
    check_eq(Context.context)
def test_get():
    from proteus import Context
    Context.set(ContextObject())
    ct = Context.get()
    check_eq(ct)