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
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user