def test_setting_new_env_dict_key_should_work():
 key = 'thisshouldnevereverexistseriouslynow'
 value = 'a winner is you'
 with settings(**{key: value}):
  ok_((key in env))
 ok_((key not in env))

def test_setting_new_env_dict_key_should_work ( ) : key = 'thisshouldnevereverexistseriouslynow' value = 'a winner is you' with settings ( ** { key : value } ) : ok_ ( ( key in env ) ) ok_ ( ( key not in env ) )
using settings() with a previously nonexistent key should work correctly .