fixes on fortuneo module

browser.py:
        added condition on login page
        test in home removed
    pages/accounts_list.py
        code  refactor
        BrokenPageError is thrown if the <tr> table is void
        cosmetic changes
        added a TODO for FrenchTransaction implementation
        not needed code lines deleted
        list concatenation in a smarter way
    pages/login.py
        BrowserUnavailable() implemented to throw an exception when the site is in maintenance
        smarter list concatenation
    test.py
        working test (was not really implemented)
This commit is contained in:
sputnick 2012-04-21 19:01:42 +02:00 committed by Romain Bignon
commit cd5f29a0f9
4 changed files with 27 additions and 24 deletions

View file

@ -45,8 +45,7 @@ class Fortuneo(BaseBrowser):
def home(self):
"""main page (login)"""
if not self.is_on_page(AccountHistoryPage):
self.location('/fr/prive/identification.jsp')
self.location('/fr/prive/identification.jsp')
def is_logged(self):
"""Return True if we are logged on website"""