'Test turn_off.'

def test_turn_off(self):

    turn_off_calls = mock_service(self.hass, remote.DOMAIN, SERVICE_TURN_OFF)
    remote.turn_off(self.hass, entity_id='entity_id_val')
    self.hass.block_till_done()
    self.assertEqual(1, len(turn_off_calls))
    call = turn_off_calls[(-1)]
    self.assertEqual(remote.DOMAIN, call.domain)
    self.assertEqual(SERVICE_TURN_OFF, call.service)
    self.assertEqual('entity_id_val', call.data[ATTR_ENTITY_ID])
