'Test simple coro (async).'

def test_simple_coro(self):

    calls = []
    @asyncio.coroutine
    def test_funct(data):
        'Test    function.'
        calls.append(data)
    dispatcher_connect(self.hass, 'test', test_funct)
    dispatcher_send(self.hass, 'test', 3)
    self.hass.block_till_done()
    assert (calls == [3])
    dispatcher_send(self.hass, 'test', 'bla')
    self.hass.block_till_done()
    assert (calls == [3, 'bla'])
