Exemple #1
0
def test_put_settings_proxy():
    test_key = 'hostname'

    old = settings.get_settings_proxy()
    settings.put_settings_proxy({test_key: 'test_host'})
    new = settings.get_settings_proxy()

    assert old[test_key] != new[test_key]
    assert new[test_key] == 'test_host'
Exemple #2
0
def test_get_settings_proxy():
    s = settings.get_settings_proxy()
    assert isinstance(s, dict)
    assert len(s) > 0