'Test send_command.'

def test_send_command(self):

    send_command_calls = mock_service(self.hass, remote.DOMAIN, SERVICE_SEND_COMMAND)
    remote.send_command(self.hass, entity_id='entity_id_val', device='test_device', command=['test_command'], num_repeats='4', delay_secs='0.6')
    self.hass.block_till_done()
    self.assertEqual(1, len(send_command_calls))
    call = send_command_calls[(-1)]
    self.assertEqual(remote.DOMAIN, call.domain)
    self.assertEqual(SERVICE_SEND_COMMAND, call.service)
    self.assertEqual('entity_id_val', call.data[ATTR_ENTITY_ID])
