From 9e4aeab517c3f389ac6e761f095a597f3a0d5ec5 Mon Sep 17 00:00:00 2001 From: Diana Clarke Date: Fri, 30 Oct 2015 13:30:34 -0400 Subject: Deprecated: failIf Replace failIf with assertFalse to remove the following warning from the unit test logs. PendingDeprecationWarning: Please use assertFalse instead. self.failIf(mock_load.called) Change-Id: I439251e6d2529640b31401b245a9d51dd7b69fc1 --- nova/tests/unit/objects/test_host_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/tests/unit/objects/test_host_mapping.py') diff --git a/nova/tests/unit/objects/test_host_mapping.py b/nova/tests/unit/objects/test_host_mapping.py index cc10f08049..ccab99dbd6 100644 --- a/nova/tests/unit/objects/test_host_mapping.py +++ b/nova/tests/unit/objects/test_host_mapping.py @@ -57,7 +57,7 @@ class _TestHostMappingObject(object): comparators={ 'cell_mapping': self._check_cell_map_value}) # Check that lazy loading isn't happening - self.failIf(mock_load.called) + self.assertFalse(mock_load.called) def test_from_db_object_no_cell_map(self): """Test when db object does not have cell_mapping""" -- cgit v1.2.1