fix tests for bnporc

This commit is contained in:
Romain Bignon 2010-08-26 18:15:11 +02:00
commit 1782e045d7
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ class AccountComing(BasePage):
continue continue
date = tds[0].getchildren()[0].attrib.get('name', '') date = tds[0].getchildren()[0].attrib.get('name', '')
label = u'' label = u''
label += tds[1].text label += tds[1].text or u''
label = label.replace(u'\xa0', u'') label = label.replace(u'\xa0', u'')
for child in tds[1].getchildren(): for child in tds[1].getchildren():
if child.text: label += child.text if child.text: label += child.text

View file

@ -25,5 +25,5 @@ class BNPorcTest(BackendTest):
l = [a for a in self.backend.iter_accounts()] l = [a for a in self.backend.iter_accounts()]
if len(l) > 0: if len(l) > 0:
a = l[0] a = l[0]
self.backend.iter_operations(a) [o for o in self.backend.iter_operations(a)]
self.backend.iter_history(a) [o for o in self.backend.iter_history(a)]