I think this assertion would be better as `self.assertEqual(x+1, new_alarms_count, "Message")` as in each step of the loop the x value will tell us exactly what our expected number of alarms at that point is. Thus we avoid seeding the expected value with the realtime value.

For example if initial_alarms_count value returned 0, then every loop of this test would pass.