swift/test/unit/account
Brian Cline b4c5a13664 Uses None instead of mutables for function param defaults
As seen on #1174809, changes use of mutable types as default
arguments and defaults them within the method. Otherwise, those
defaults can be unexpectedly persisted with the function between
invocations and erupt into mass hysteria on the streets.

There was indeed a test (TestSimpleClient.test_get_with_retries)
that was erroneously relying on this behavior. Since previous tests
had populated their own instantiations with a token, this test only
passed because the modified headers dict from previous tests was
being overridden. As expected, with the mutable defaults fix in
SimpleClient, this test begain to fail since it never specified any
token, yet it has always passed anyway. This change also now provides
the expected token.

Change-Id: If95f11d259008517dab511e88acfe9731e5a99b5
Related-Bug: #1174809
2014-05-10 11:15:56 +00:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
test_auditor.py DiskFile API, with reference implementation 2013-10-17 15:03:31 -04:00
test_backend.py Make initialization test failure more explicit 2014-03-25 17:00:44 -04:00
test_reaper.py Uses None instead of mutables for function param defaults 2014-05-10 11:15:56 +00:00
test_replicator.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_server.py Unify backend logging 2014-04-07 18:38:04 +00:00