def test_attribute_error_method_for_empty():
    """
    should raise ElementDoesNotExist when the list is empty
    and someone tries to access a method or property on the child element.
    """
    with pytest.raises(ElementDoesNotExist):
        the_list = ElementList([])
        the_list.unknown_method()

    should raise ElementDoesNotExist when the list is empty
    and someone tries to access a method or property on the child element.
    
tests/tests_splinter/test_element_list.py