From 028abf9f37c2ba59f8dc8d61df979be75ad6d569 Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
Date: Thu, 31 Mar 2011 05:32:52 +0000
Subject: [PATCH] Document when LookupError are raised for listbox methods

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44858 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 erp5/util/test_browser/browser.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/erp5/util/test_browser/browser.py b/erp5/util/test_browser/browser.py
index 4a37c802c2..7c54df768f 100644
--- a/erp5/util/test_browser/browser.py
+++ b/erp5/util/test_browser/browser.py
@@ -331,6 +331,9 @@ class Browser(ExtendedTestBrowser):
     @type kwargs: dict
     @return: C{Link} at the given line and column number
     @rtype: L{zope.testbrowser.interfaces.ILink}
+
+    @raise LookupError: No link could be found at the given position
+                        and cell indexes
     """
     xpath_str = '%s//tr[%d]//%s[%d]//a[not(contains(@class, "hidden"))][%d]' % \
         (self._listbox_table_xpath_str,
@@ -706,6 +709,9 @@ class ContextMainForm(MainForm):
     @type kwargs: dict
     @return: The control found at the given line and column numbers
     @rtype: L{zope.testbrowser.interfaces.IControl}
+
+    @raise LookupError: No control could be found at the given
+                        position and cell indexes
     """
     xpath_str = '%s//tr[%d]//%s[%d]/*[not(@type="hidden") and ' \
         'not(contains(@class, "hidden"))][%d]' % \
-- 
2.30.9