def test_build_xpath_concat_single_quote():
    """Given a string with 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.")
    expected = '{}"Text with a single ",{}," quotation mark.", "")]'.format(
        XPATH_START,
        WRAPPED_SINGLE_QUOTE,
    )
    assert result == expected
Given a string with single quotes
    When I build a concat xpath
    Then the xpath string is correctly built
    
tests/tests_splinter/test_xpath_concat.py