From 06a01e88e5fbcd5190c213d95b42669d17236582 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 31 Aug 2016 14:45:51 +0100 Subject: [PATCH] hacking: Use assertIs(Not), assert(True|False) This is per the OpenStack style guidelines. Change-Id: Iec102872e2d5b004255ce897cc22c4d1a41c6f9e Co-authored-by: Gabor Antal --- HACKING.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HACKING.rst b/HACKING.rst index 35e754d70..ed417c9b4 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -65,6 +65,8 @@ Nova Specific Commandments - [N352] LOG.warn is deprecated. Enforce use of LOG.warning. - [N353] Validate that context objects is not passed in logging calls. - [N354] String interpolation should be delayed at logging calls. +- [N355] Enforce use of assertTrue/assertFalse +- [N356] Enforce use of assertIs/assertIsNot Creating Unit Tests -------------------