<s> import pytest <EOL> from webdriverwrapper . exceptions import ( <EOL> _create_exception_msg , <EOL> _create_exception_msg_tag_element , <EOL> _find_best_suggestion , <EOL> NoSuchElementException , <EOL> ) <EOL> def test_make_msg_id ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg_tag_element ( id_ = '<STR_LIT:id>' ) <EOL> def test_make_msg_class_name ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg_tag_element ( class_name = '<STR_LIT:class>' ) <EOL> def test_make_msg_tag_name ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg_tag_element ( tag_name = '<STR_LIT>' ) <EOL> def test_make_msg_name ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg_tag_element ( name = '<STR_LIT>' ) <EOL> def test_make_msg_combined ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg_tag_element ( tag_name = '<STR_LIT>' , id_ = '<STR_LIT:id>' , name = '<STR_LIT>' ) <EOL> def test_make_msg_xpath ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg_tag_element ( xpath = '<STR_LIT>' ) <EOL> def test_make_msg_css_selector ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg_tag_element ( css_selector = '<STR_LIT>' ) <EOL> def test_make_msg_with_url ( ) : <EOL> assert '<STR_LIT>' == _create_exception_msg ( id_ = '<STR_LIT:id>' , url = '<STR_LIT>' ) <EOL> def test_raises_exception_with_msg ( driver ) : <EOL> with pytest . raises ( NoSuchElementException ) as excinfo : <EOL> driver . get_elm ( '<STR_LIT>' ) <EOL> assert '<STR_LIT>' in str ( excinfo . value ) <EOL> def test_raises_exception_with_msg_origin_find_methods ( driver ) : <EOL> with pytest . raises ( NoSuchElementException ) as excinfo : <EOL> driver . find_element_by_id ( '<STR_LIT>' ) <EOL> assert '<STR_LIT>' in str ( excinfo . value ) <EOL> def test_suggestions ( driver ) : <EOL> with pytest . raises ( NoSuchElementException ) as excinfo : <EOL> driver . find_element_by_id ( '<STR_LIT>' ) <EOL> assert '<STR_LIT>' in str ( excinfo . value ) <EOL> def test_find_best_suggestions ( ) : <EOL> suggestion = _find_best_suggestion ( '<STR_LIT>' , [ '<STR_LIT:id>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> assert suggestion == '<STR_LIT:id>' </s>
