i'd rewrite this like this:

```python
card = balanced.Card(**CARD).save()
 [card.debit(amount=100) for _ in xrange(30)] 
self.assertEqual(card.debits.query.all(), 30)
```

your implementation makes 77 queries to the api, mine 32.