Fix invalid assert state

"self.assertTrue(2, mock_load.call_count)" will never fail, and should
use assertEqual.

Change-Id: If99ef98f821d2df45fc03d4587d6c8c4953d7970
This commit is contained in:
zhufl 2019-06-28 16:42:49 +08:00
parent c49e0cbc3e
commit ca4ff0f98f
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class SnapshotServiceTest(common.HeatTestCase):
stk.identifier(), snapshot_id)
self.assertEqual(exception.NotFound, ex.exc_info[0])
self.assertTrue(2, mock_load.call_count)
self.assertEqual(2, mock_load.call_count)
@mock.patch.object(stack.Stack, 'load')
def test_list_snapshots(self, mock_load):