async def bad_chain2(self):
        """Test that a background task generator cannot be chained."""
        async for _foo in self.background_task_generator():
            pass
Test that a background task generator cannot be chained.
tests/units/test_state.py