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