'Setup things to be run when tests are started.'

def setUp(self):

    self.hass = get_test_home_assistant()
    self.events = []
    self.calls = []
    @callback
    def record_event(event):
        'Record    event    to    send    notification.'
        self.events.append(event)
    self.hass.bus.listen(demo.EVENT_NOTIFY, record_event)
