Ignore:
Timestamp:
1 Mar 2015, 23:06:45 (10 years ago)
Author:
uli
Message:

Do not make assumptions about item keys in tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/tests/test_payment.py

    r12642 r12644  
    118118        item1 = PaymentItem()
    119119        result = p1.add_payment_item(item1)
    120         assert result == "0"
     120        assert len(p1) == 1  # do not make assumptions about result content
     121
     122    def test_add_payment_item_multiple(self):
     123        # we can add several items
     124        p1 = Payment()
     125        item1 = PaymentItem()
     126        item2 = PaymentItem()
     127        result1 = p1.add_payment_item(item1)
     128        result2 = p1.add_payment_item(item2)
     129        assert len(p1) == 2  # do not make assumptions about result content
    121130
    122131
Note: See TracChangeset for help on using the changeset viewer.