def test_ipy_display_hook__multiple_special_reprs() -> None:
    """
    The case where there are multiple IPython special _repr_*_
    methods on the object, and one of them returns None but another
    one does not.
    """
    console = Console(file=io.StringIO(), force_jupyter=True)

    class Thing:
        def __repr__(self):
            return "A Thing"

        def _repr_latex_(self):
            return None

        def _repr_html_(self):
            return "hello"

    result = _ipy_display_hook(Thing(), console=console)
    assert result == "A Thing"

    The case where there are multiple IPython special _repr_*_
    methods on the object, and one of them returns None but another
    one does not.
    
tests/test_pretty.py