def test_env_error(): with pytest.raises(KeyError): env('foo')
def test_env_default(): assert env('foo', default='bar') == 'bar'
def test_env(): assert env('foo', default='bar') == 'stuff'