20534c78c6
Rules: N311 - Validate that debug level logs are not translated N320 - Ensure that ``assertTrue(isinstance(A, B))`` is not used N321 - Ensure that ``assertEqual(type(A), B)`` is not used N322 - Ensure that ``assertEqual(A, None)`` and ``assertEqual(None, A)`` are not used N323 - Ensure that ``assertTrue/assertFalse(A in/not in B)`` are not used with collection contents Also, small bug related to logging in verification was fixed. Change-Id: Ieabe1b23d0c02cc13bb6cad106ab855507359ddc |
||
---|---|---|
.. | ||
__init__.py | ||
checks.py | ||
README.rst |
Rally Style Commandments
- Step 1: Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
- Step 2: Read on
Rally Specific Commandments
- * [N30x] - Reserved for rules related to
mock
library -
- [N301] - Ensure that
assert_*
methods frommock
library is used correctly - [N302] - Ensure that nonexistent "assert_called" is not used
- [N303] - Ensure that nonexistent "assert_called_once" is not used
- [N301] - Ensure that
- * [N310-N314] - Reserved for rules related to logging
-
- [N310] - Ensure that
rally.log
is used instead ofrally.openstack.common.log
- [N311] - Validate that debug level logs are not translated
- [N310] - Ensure that
- * [N32x] - Reserved for rules related to assert* methods
-
- [N320] - Ensure that
assertTrue(isinstance(A, B))
is not used - [N321] - Ensure that
assertEqual(type(A), B)
is not used - [N322] - Ensure that
assertEqual(A, None)
andassertEqual(None, A)
are not used - [N323] - Ensure that
assertTrue/assertFalse(A in/not in B)
are not used with collection contents
- [N320] - Ensure that