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
jsonutilsfunctions rather than using thejsonpackage -
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, ...).