def test_get_ref_content(self):
        """Test that _get_ref_content returns the content from a valid ref."""
        content = self.git_handler._get_ref_content('file1.txt')
        self.assertEqual(content.strip(), 'Modified content')

        # Should have called _get_valid_ref and then git show
        show_commands = [
            cmd
            for cmd, _ in self.executed_commands
            if cmd.startswith('git --no-pager show')
        ]
        self.assertTrue(any('file1.txt' in cmd for cmd in show_commands))
Test that _get_ref_content returns the content from a valid ref.
tests/unit/test_git_handler.py