browser tests: Fixes

pyflakes/pep8, test name in setup.cfg, remove useless comments
This commit is contained in:
Laurent Bachelier 2014-10-19 00:15:38 +02:00
commit 0a3300c891
3 changed files with 14 additions and 27 deletions

View file

@ -15,12 +15,14 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from unittest import TestCase
from weboob.browser import URL
from weboob.browser.pages import Form, FormSubmitWarning, HTMLPage
import collections
import lxml.html
import warnings
from unittest import TestCase
import lxml.html
from weboob.browser import URL
from weboob.browser.pages import Form, FormSubmitWarning
# Mock that allows to represent a Page
@ -48,7 +50,7 @@ class FormTest(TestCase):
</select>
<input type='submit' name='submitForm' />
</form>""")
self.elMoreSubmit = lxml.html.fromstring(
self.elMoreSubmit = lxml.html.fromstring(
"""<form method='GET'>
<input type ='text' name='nom' value='Dupont'/>
<input type ='text' name='prenom' value=''/>
@ -103,4 +105,3 @@ class FormTest(TestCase):
assert len(w) == 1
assert issubclass(w[-1].category, FormSubmitWarning)
assert warningMsg in str(w[-1].message)