'Test that the done message is reset when cancelled.'

def test_done_message_state_tracker_reset_on_cancel(self):

    entity = alert.Alert(self.hass, *TEST_NOACK)
    entity._cancel = (lambda *args: None)
    assert (entity._send_done_message is False)
    entity._send_done_message = True
    self.hass.add_job(entity.end_alerting)
    self.hass.block_till_done()
    assert (entity._send_done_message is False)
