

@silence_is_golden
def test_parse_pending_transactions(self, *args):
    trans_soup = BeautifulSoup(AUTOLOAD_CONTENT)
    autoloads = self.card._parse_pending_transactions(trans_soup)
    self.assertEquals(3, len(autoloads))
    self.assertEquals(autoloads[0], {
        'name': 'Foo',
        'value': 100,
    })
    self.assertEquals(autoloads[1], {
        'name': '',
        'value': 0.0,
    })
    self.assertEquals(autoloads[2], {
        'name': 'Xyz',
        'value': 0.0,
    })
    empty_autoloads = self.card._parse_pending_transactions(self.empty_soup)
    self.assertEquals(0, len(empty_autoloads))

dataset/ETHPy150Open shaunduncan/breezeminder/breezeminder/tests/models/test_card.py BreezeCardTestCase.test_parse_pending_transactions/original