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:
Diana Clarke 2015-10-30 13:30:34 -04:00
parent 42c1bfc933
commit 9e4aeab517

View File

@ -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"""