a9d2135f2e
Change-Id: Ifdfb8fd319ae34c26f94d053530cf0005d34be84
702 B
702 B
Senlin Style Commandments
- Step 1: Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/
- Step 2: Read on
Senlin Specific Commandments
- [S318] Use assertion
assertIsNone(A)
instead ofassertEqual(A, None)
-
or
assertEqual(None, A)
.
- [S318] Use assertion
- [S319] Use
jsonutils
functions rather than using thejson
package -
directly.
- [S319] Use
- [S320] Default arguments of a method should not be mutable.
- [S321] The api_version decorator has to be the first decorator on a method.
- [S322] LOG.warn is deprecated. Enforce use of LOG.warning.
- [S323] Use assertTrue(...) rather than assertEqual(True, ...).