def test_env_none_incorrect_default(): env = Environment({}) with raises(AssertionError): env.none("<key>", default="None")
def test_env_none(): env = Environment({"<key>": "None"}) value = cast(FutureValue, env.none("<key>")) assert value.get() is None