コード例 #1
0
def test_new_config():
    c = config.copy()
    with new_config({'xyzzy': 5}):
        assert config == {'xyzzy': 5}

    assert config == c
    assert 'xyzzy' not in config
コード例 #2
0
def test_new_config():
    c = config.copy()
    with new_config({"xyzzy": 5}):
        config["xyzzy"] == 5

    assert config == c
    assert "xyzzy" not in config
コード例 #3
0
def test_new_config():
    c = config.copy()
    with new_config({'xyzzy': 5}):
        config['xyzzy'] == 5

    assert config == c
    assert 'xyzzy' not in config