def test_unwrapping_pytest_fixture(self, pytester: Pytester) -> None:
        """Ensure the unwrap method on `FixtureFunctionDefinition` correctly wraps and unwraps methods and functions"""
        pytester.makepyfile(
            """
            import pytest
            import inspect

            class FixtureFunctionDefTestClass:
                def __init__(self) -> None:
                    self.i = 10

                @pytest.fixture
                def fixture_function_def_test_method(self):
                    return self.i


            @pytest.fixture
            def fixture_function_def_test_func():
                return 9


            def test_get_wrapped_func_returns_method():
                obj = FixtureFunctionDefTestClass()
                wrapped_function_result = (
                    obj.fixture_function_def_test_method._get_wrapped_function()
                )
                assert inspect.ismethod(wrapped_function_result)
                assert wrapped_function_result() == 10


            def test_get_wrapped_func_returns_function():
                assert fixture_function_def_test_func._get_wrapped_function()() == 9
            """
        )
        result = pytester.runpytest()
        result.assert_outcomes(passed=2)
Ensure the unwrap method on `FixtureFunctionDefinition` correctly wraps and unwraps methods and functions
testing/python/fixtures.py