test.py 1.17 KB
Newer Older
1 2 3 4
# -*- coding: utf-8 -*-

# Copyright(C) 2014      Oleg Plakhotniuk
#
5
# This file is part of a weboob module.
6
#
7
# This weboob module is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU Lesser General Public License as published by
9 10 11
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
12
# This weboob module is distributed in the hope that it will be useful,
13 14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU Lesser General Public License for more details.
16
#
17
# You should have received a copy of the GNU Lesser General Public License
18
# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
19

20
from weboob.tools.test import BackendTest
21 22 23 24
from itertools import chain


class WellsFargoTest(BackendTest):
Florent Fourcot's avatar
Florent Fourcot committed
25
    MODULE = 'wellsfargo'
26 27 28 29 30 31 32 33 34

    def test_history(self):
        """
        Test that there's at least one transaction in the whole history.
        """
        b = self.backend
        ts = chain(*[b.iter_history(a) for a in b.iter_accounts()])
        t = next(ts, None)
        self.assertNotEqual(t, None)