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:
parent
c49e0cbc3e
commit
ca4ff0f98f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue