def test_settings_with_multiple_kwargs():
 env.testval1 = 'outer 1'
 env.testval2 = 'outer 2'
 with settings(testval1='inner 1', testval2='inner 2'):
  eq_(env.testval1, 'inner 1')
  eq_(env.testval2, 'inner 2')
 eq_(env.testval1, 'outer 1')
 eq_(env.testval2, 'outer 2')

def test_settings_with_multiple_kwargs ( ) : env . testval1 = 'outer 1' env . testval2 = 'outer 2' with settings ( testval1 = 'inner 1' , testval2 = 'inner 2' ) : eq_ ( env . testval1 , 'inner 1' ) eq_ ( env . testval2 , 'inner 2' ) eq_ ( env . testval1 , 'outer 1' ) eq_ ( env . testval2 , 'outer 2' )
settings() should temporarily override env dict with given key/value pairs .