NotImplemented exception for history on asv and clean code

This commit is contained in:
Baptiste Delpey 2015-02-03 10:59:46 +01:00 committed by Romain Bignon
commit ea030bf6ab
2 changed files with 1 additions and 5 deletions

View file

@ -263,7 +263,7 @@ class IngBrowser(LoginBrowser):
return self.page.iter_history()
else:
# No history for ASV accounts.
return iter([])
raise NotImplementedError()
############# CapBill #############
@need_login

View file

@ -170,10 +170,6 @@ class AccountsList(LoggedPage, HTMLPage):
item_xpath = '//table'
def get_history_jid(self):
if self.is_asv:
# Assurance Vie, we do not support this kind of account.
return None
span = Attr('//span[starts-with(@id, "index:j_id")]', 'id')(self.doc)
jid = span.split(':')[1]
return jid