magnum/magnum/tests
Hongbin Lu 0b9b7de79a Eliminate mutable default arguments
The best practice in Python is not to use mutable object (i.e. list,
dictionary, or instances of most classes) as value of default argument.

See: https://docs.python.org/2/tutorial/controlflow.html#default-argument-values

This patch also added a hacking rule to enforce this practice.

Change-Id: I4aa8aede57d6fd31b4b30c3f7535b819e591165d
Closes-Bug: 1471349
2015-07-10 13:33:49 +00:00
..
contrib Adding functional test cases for Kubernetes APIs 2015-06-29 13:24:34 +09:00
functional Adding functional test cases for Kubernetes APIs 2015-06-29 13:24:34 +09:00
unit Eliminate mutable default arguments 2015-07-10 13:33:49 +00:00
__init__.py Remove imports from oslo namespaces 2015-02-08 02:59:30 +00:00
base.py Replace dict.iteritems() with dict.items() 2015-06-25 16:19:38 +01:00
conf_fixture.py Use oslo.log instead of oslo.incubator log module 2015-05-29 18:28:23 +08:00
config.py Add hooks to obtain conductor api 2014-12-30 23:07:05 +09:00
fake_policy.py policy check for node 2015-06-30 16:36:03 +08:00
fakes.py Add support for API microversions 2015-06-08 11:14:36 +08:00
policy_fixture.py Add test case for bay policy check 2015-06-17 00:32:16 +08:00
utils.py Change ctxt to context to for consistency 2015-02-08 22:50:27 -05:00