diff options
author | Takashi NATSUME <natsume.takashi@lab.ntt.co.jp> | 2018-10-25 11:24:09 +0900 |
---|---|---|
committer | Takashi NATSUME <natsume.takashi@lab.ntt.co.jp> | 2018-10-25 11:49:10 +0900 |
commit | 249174943e8a1c178b15eedc91f0fa05a34e9350 (patch) | |
tree | d3fe6f97f127053d931319afd93bac19e35148c2 /HACKING.rst | |
parent | 7a76d0c71d8be56fd9d7fb3d32b6d2aec0e24a2f (diff) | |
download | nova-249174943e8a1c178b15eedc91f0fa05a34e9350.tar.gz |
Add a hacking rule for deprecated assertion methods
Add a hacking rule for the following deprecated methods(*)
in Python 3.
* assertRegexpMatches
* assertNotRegexpMatches
[N361] assertRegex/assertNotRegex must be used instead of
assertRegexpMatches/assertNotRegexpMatches.
*: https://docs.python.org/3.6/library/unittest.html#deprecated-aliases
Change-Id: Icfbaf26a7db6986820e264d1888982b985d613a1
Diffstat (limited to 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst index 148097561a..33bd80aae7 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -68,6 +68,8 @@ Nova Specific Commandments - [N358] Return must always be followed by a space when returning a value. - [N359] Check for redundant import aliases. - [N360] Yield must always be followed by a space when yielding a value. +- [N361] Check for usage of deprecated assertRegexpMatches and + assertNotRegexpMatches Creating Unit Tests ------------------- |