Exemplo n.º 1
0
def test_env_key_should_return_from_environ():
    os.environ['TESTING_KEY'] = "true"
    eq_(pyconfig.env_key('testing.key', 1), "true")
Exemplo n.º 2
0
def test_env_key_should_return_default():
    eq_(pyconfig.env_key('testing.key', 1), 1)