From b61f89b5c9a508a02a09bc1d79fa89a8043a00c9 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 30 Jan 2012 15:29:23 +0100 Subject: [PATCH] pyflakes fixes --- modules/societegenerale/browser.py | 6 +++--- modules/societegenerale/test.py | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/societegenerale/browser.py b/modules/societegenerale/browser.py index 1b0fd7b6..730f02a5 100644 --- a/modules/societegenerale/browser.py +++ b/modules/societegenerale/browser.py @@ -80,9 +80,9 @@ class SocieteGenerale(BaseBrowser): def get_history(self, account): raise NotImplementedError() - if not self.is_on_page(AccountHistory) or self.page.account.id != account.id: - self.location(account.link_id) - return self.page.get_operations() + #if not self.is_on_page(AccountHistory) or self.page.account.id != account.id: + # self.location(account.link_id) + #return self.page.get_operations() def transfer(self, from_id, to_id, amount, reason=None): raise NotImplementedError() diff --git a/modules/societegenerale/test.py b/modules/societegenerale/test.py index 75c51415..344093dc 100644 --- a/modules/societegenerale/test.py +++ b/modules/societegenerale/test.py @@ -25,7 +25,8 @@ class SocieteGeneraleTest(BackendTest): def test_societegenerale(self): l = list(self.backend.iter_accounts()) - if len(l) > 0: - a = l[0] - #list(self.backend.iter_operations(a)) - #list(self.backend.iter_history(a)) + self.assertTrue(len(l) > 0) + #if len(l) > 0: + # a = l[0] + # list(self.backend.iter_operations(a)) + # list(self.backend.iter_history(a))