diff options
author | gengchc2 <geng.changcai2@zte.com.cn> | 2016-09-22 16:09:15 +0800 |
---|---|---|
committer | gengchc2 <geng.changcai2@zte.com.cn> | 2016-11-16 03:54:04 +0000 |
commit | f276a96d84ee5250c134599c129ea6a9e8a1d3a6 (patch) | |
tree | e7ad1c11f75034a6b8c49a2b0971b9bb46ae89d5 /HACKING.rst | |
parent | a780d306b942ed5c558e3b9262d4f54b7a9dc05d (diff) | |
download | neutron-f276a96d84ee5250c134599c129ea6a9e8a1d3a6.tar.gz |
Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to
have more clear messages in case of failure.
Change-Id: Ice018dfd3e48326ce9cac58342d03979559b9e82
Diffstat (limited to 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst index 80d58701c6..058dc84162 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -32,6 +32,7 @@ Neutron Specific Commandments - [N343] Production code must not import from neutron.tests.* - [N344] Python 3: Do not use filter(lambda obj: test(obj), data). Replace it with [obj for obj in data if test(obj)]. +- [N345] Detect wrong usage with assertEqual(None, A) and assertEqual(A, None). Creating Unit Tests ------------------- |