Skip to content

Commit

Permalink
Fix misused assertTrue in unit tests
Browse files Browse the repository at this point in the history
Refactored unit tests to use assertEqual instead of assertTrue
where needed.

Fixes bug #1226374

Change-Id: I6826fefbb7c6fed8b0e664da36b144e882fb6d0e
  • Loading branch information
glongwave committed Sep 17, 2013
1 parent 752bf20 commit c8b1421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heat/tests/test_ceilometer_alarm.py
Expand Up @@ -215,8 +215,8 @@ def test_mem_alarm_suspend_resume(self):
self.stack.create()
rsrc = self.stack['MEMAlarmHigh']
scheduler.TaskRunner(rsrc.suspend)()
self.assertTrue((rsrc.SUSPEND, rsrc.COMPLETE), rsrc.state)
self.assertEqual((rsrc.SUSPEND, rsrc.COMPLETE), rsrc.state)
scheduler.TaskRunner(rsrc.resume)()
self.assertTrue((rsrc.RESUME, rsrc.COMPLETE), rsrc.state)
self.assertEqual((rsrc.RESUME, rsrc.COMPLETE), rsrc.state)

self.m.VerifyAll()

0 comments on commit c8b1421

Please sign in to comment.