nova/nova/tests/api/openstack
ChangBo Guo(gcb) 0bea84ac20 Removes the use of mutables as default args
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this. This commit changes mutable default args with
None, then use 'arg = arg or {}', 'arg = arg or []'. For unit code which
doesn't use the args , just set with None. This commit also adds hacking
check.

Closes-Bug: #1327473
Change-Id: I5a8492bf8ffef8e000b13b6bdfaef1968b96f816
2014-06-18 12:59:02 +08:00
..
compute Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
__init__.py Removed copyright from empty files 2014-02-27 14:27:54 +02:00
common.py Remove vi modelines 2014-02-03 14:19:44 +00:00
fakes.py Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
test_common.py Fix calls to mock.assert_not_called() 2014-05-04 19:05:44 -07:00
test_faults.py Sync latest gettextutils from oslo-incubator 2014-02-05 16:57:04 +00:00
test_mapper.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_wsgi.py Fix H401,H402 violations and re-enable gating 2014-06-10 09:56:31 -07:00
test_xmlutil.py Remove vi modelines 2014-02-03 14:19:44 +00:00