def test_not_found_exception_with_query_and_method():
    """
    should receive the find method
    and the query and use them in exception
    """
    with pytest.raises(ElementDoesNotExist) as e:
        the_list = ElementList([], find_by="id", query="menu")
        the_list.first

    expected_message = 'No elements were found with id "menu"'
    assert expected_message == str(e.value)

    should receive the find method
    and the query and use them in exception
    
tests/tests_splinter/test_element_list.py