コード例 #1
0
def test_options_context():

    with rl.option_context("indexing.pairs", "multiindex"):
        rl.options.indexing.pairs = "multiindex"
        assert rl.get_option("indexing.pairs") == "multiindex"
コード例 #2
0
def test_options():

    # global set
    rl.options.indexing.pairs = "multiindex"
    assert rl.get_option("indexing.pairs") == "multiindex"