'Test is_on.'

def test_is_on(self):

    self.hass.states.set('remote.test', STATE_ON)
    self.assertTrue(remote.is_on(self.hass, 'remote.test'))
    self.hass.states.set('remote.test', STATE_OFF)
    self.assertFalse(remote.is_on(self.hass, 'remote.test'))
    self.hass.states.set(remote.ENTITY_ID_ALL_REMOTES, STATE_ON)
    self.assertTrue(remote.is_on(self.hass))
    self.hass.states.set(remote.ENTITY_ID_ALL_REMOTES, STATE_OFF)
    self.assertFalse(remote.is_on(self.hass))
