def test_creating_a_subcontext(): ctx = Context() ctx4 = ctx.subcontext({"lang": "@language"}) assert ctx4.get_language({"lang": "en"}) == "en"
def test_creating_a_subcontext(): ctx = Context() ctx4 = ctx.subcontext({'lang': '@language'}) assert ctx4.get_language({'lang': 'en'}) == 'en'