def test_build_xpath_concat_multiple_types():
    """Given a string with double quotes and single quotes
    When I build a concat xpath
    Then the xpath string is correctly built
    """
    result = _concat_xpath_from_str(
        "Text with a single ' quotation mark and double \" quotation mark.",
    )
    expected = '{}"Text with a single ",{}," quotation mark and double ",{},\' quotation mark.\', "")]'.format(
        XPATH_START,
        WRAPPED_SINGLE_QUOTE,
        WRAPPED_DOUBLE_QUOTE,
    )
    assert result == expected
Given a string with double quotes and single quotes
    When I build a concat xpath
    Then the xpath string is correctly built
    
tests/tests_splinter/test_xpath_concat.py