'Test handling an event from LiteJet.'

def test_pressed_event(self):

    _LOGGER.info(self.switch_pressed_callbacks[ENTITY_SWITCH_NUMBER])
    self.switch_pressed_callbacks[ENTITY_SWITCH_NUMBER]()
    self.hass.block_till_done()
    assert switch.is_on(self.hass, ENTITY_SWITCH)
    assert (not switch.is_on(self.hass, ENTITY_OTHER_SWITCH))
    assert (self.switch().state == 'on')
    assert (self.other_switch().state == 'off')
    self.switch_pressed_callbacks[ENTITY_OTHER_SWITCH_NUMBER]()
    self.hass.block_till_done()
    assert switch.is_on(self.hass, ENTITY_OTHER_SWITCH)
    assert switch.is_on(self.hass, ENTITY_SWITCH)
    assert (self.other_switch().state == 'on')
    assert (self.switch().state == 'on')
