async def test_aioredis_client(self, r):
        """A aioredis client created in a parent can also be used in a child"""
        assert await r.ping() is True

        def target(client):
            run = asyncio.get_event_loop().run_until_complete
            assert run(client.ping()) is True
            del client

        proc = multiprocessing.Process(target=target, args=(r,))
        proc.start()
        proc.join(3)
        assert proc.exitcode == 0

        assert await r.ping() is True
A aioredis client created in a parent can also be used in a child
tests/test_multiprocessing.py