Ignore:
Timestamp:
4 Sep 2012, 07:03:24 (12 years ago)
Author:
Henrik Bettermann
Message:

Check if we can import p_current.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_payment_data.csv

    r9039 r9151  
    1 matric_number,p_state,p_category,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type
    2 ,paid,schoolfee,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online
    3 100001,unpaid,schoolfee,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 WAT,online
    4 ,paid,schoolfee,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online
     1matric_number,p_state,p_category,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type,p_current
     2,paid,schoolfee,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online,1
     3100001,unpaid,schoolfee,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 WAT,online,0
     4,paid,schoolfee,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online,1
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py

    r9039 r9151  
    915915            p_id='p2907979737440'), self.app)
    916916        self.assertEqual(payment.p_id, 'p2907979737440')
     917        self.assertTrue(payment.p_current)
    917918        cdate = payment.creation_date.strftime("%Y-%m-%d %H:%M:%S")
    918919        self.assertEqual(cdate, "2010-11-26 18:59:33")
     
    921922            p_id='p2907125937570'), self.app)
    922923        self.assertEqual(payment.p_id, 'p2907125937570')
     924        self.assertFalse(payment.p_current)
    923925        cdate = payment.creation_date.strftime("%Y-%m-%d %H:%M:%S")
    924926        # Ooooh, still the old problem, see
     
    932934        self.assertTrue(
    933935            'INFO - system - K1000001 - Payment ticket updated: '
    934             'p_id=p1266236341955, p_item=BTECHBDT, '
    935             'creation_date=2010-02-15 13:19:01+00:00, r_code=00, '
    936             'r_amount_approved=19500.0, p_category=schoolfee, '
    937             'amount_auth=19500.0, p_state=paid'
     936            'p_item=BTECHBDT, creation_date=2010-02-15 13:19:01+00:00, '
     937            'p_category=schoolfee, amount_auth=19500.0, p_current=True, '
     938            'p_id=p1266236341955, r_code=00, r_amount_approved=19500.0, '
     939            'p_state=paid'
    938940            in logcontent)
    939941
Note: See TracChangeset for help on using the changeset viewer.