'Test turning the light on and off.'

def test_on_off(self):

    assert (self.light().state == 'off')
    assert (self.other_light().state == 'off')
    assert (not light.is_on(self.hass, ENTITY_LIGHT))
    light.turn_on(self.hass, ENTITY_LIGHT)
    self.hass.block_till_done()
    self.mock_lj.activate_load.assert_called_with(ENTITY_LIGHT_NUMBER)
    light.turn_off(self.hass, ENTITY_LIGHT)
    self.hass.block_till_done()
    self.mock_lj.deactivate_load.assert_called_with(ENTITY_LIGHT_NUMBER)
