async def test_read_only_error(self, r):
        """READONLY errors get turned in ReadOnlyError exceptions"""
        with pytest.raises(aioredis.ReadOnlyError):
            await r.execute_command("DEBUG", "ERROR", "READONLY blah blah")
READONLY errors get turned in ReadOnlyError exceptions
tests/test_connection_pool.py