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