'Test simple function (executor).'

def test_simple_function_multiargs(self):

    calls = []
    def test_funct(data1, data2, data3):
        'Test    function.'
        calls.append(data1)
        calls.append(data2)
        calls.append(data3)
    dispatcher_connect(self.hass, 'test', test_funct)
    dispatcher_send(self.hass, 'test', 3, 2, 'bla')
    self.hass.block_till_done()
    assert (calls == [3, 2, 'bla'])
