diff options
author | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2015-01-08 11:38:28 -0500 |
---|---|---|
committer | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2015-01-14 22:04:45 -0500 |
commit | c3d10b7a62ad2032cde401f91e764c59d2e11b44 (patch) | |
tree | c5ffba8b2bbe26e10d1ee5a428d7f00e46795b2c /HACKING.rst | |
parent | 3c27e2c8f57d4be413e4766ebff2f12317bb903b (diff) | |
download | nova-c3d10b7a62ad2032cde401f91e764c59d2e11b44.tar.gz |
Do not use deprecated assertRaisesRegexp()
The unit test log ends up with DeprecationWarning(s) from the outdated
calls to assertRaisesRegexp. We should switch to using assertRaisesRegex
instead. This commit eliminates these warnings from the log and the hacking
rule N344 ensures that folks don't end up adding fresh code down the line
with the outdated assertRaisesRegexp as well
Partial-Bug: #1407736
Change-Id: Ifba672f7568d5159c63bf88c534812e4e3a26d5a
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 67cd952185..0f8b94f9f3 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -46,6 +46,7 @@ Nova Specific Commandments - [N333] Check for oslo library imports use the non-namespaced packages - [N334] Change assertTrue/False(A in/not in B, message) to the more specific assertIn/NotIn(A, B, message) +- [N335] Check for usage of deprecated assertRaisesRegexp Creating Unit Tests ------------------- |