def test_build_xpath_concat_nested():
    """Given a string with double quotes around a single quote
    When I build a concat xpath
    Then the xpath string is correctly built
    """
    result = _concat_xpath_from_str('A "real ol\' mess" of text.')
    expected = '{}\'A \',{},"real ol",{}," mess",{},\' of text.\', "")]'.format(
        XPATH_START,
        WRAPPED_DOUBLE_QUOTE,
        WRAPPED_SINGLE_QUOTE,
        WRAPPED_DOUBLE_QUOTE,
    )
    assert result == expected
Given a string with double quotes around a single quote
    When I build a concat xpath
    Then the xpath string is correctly built
    
tests/tests_splinter/test_xpath_concat.py