Esempio n. 1
0
def test_configuration_override():
    kpc = { 'username': '******', 'password': '******', 'url': 'L' }
    overrides = { conf.kernel_python_credentials.__name__: kpc }
    conf.override_all(overrides)
    conf.override(conf.status_sleep_seconds.__name__, 1)
    assert_equals(conf._overrides, { conf.kernel_python_credentials.__name__: kpc,
                                     conf.status_sleep_seconds.__name__: 1 })
    assert_equals(conf.status_sleep_seconds(), 1)
    assert_equals(conf.kernel_python_credentials(), kpc)
def test_configuration_raise_error_for_bad_base64_password():
    kpc = { 'username': '******', 'base64_password': '******', 'url': 'L' }
    overrides = { conf.kernel_python_credentials.__name__: kpc }
    conf.override_all(overrides)
    conf.override(conf.status_sleep_seconds.__name__, 1)
    conf.kernel_python_credentials()