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)
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)
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)