comparison gpp/donations/tests.py @ 577:4fb264b671d5

Fix bug in donations test.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 14:18:56 -0500
parents 767cedc7d12a
children
comparison
equal deleted inserted replaced
576:6301dd73683f 577:4fb264b671d5
99 self.assertEqual(d.payer_email, 'test_user@example.com') 99 self.assertEqual(d.payer_email, 'test_user@example.com')
100 self.assertEqual(d.payer_id, 'FAKEPAYERID02') 100 self.assertEqual(d.payer_id, 'FAKEPAYERID02')
101 self.assertEqual(d.mc_fee, Decimal('3.20')) 101 self.assertEqual(d.mc_fee, Decimal('3.20'))
102 self.assertEqual(d.mc_gross, Decimal('100.00')) 102 self.assertEqual(d.mc_gross, Decimal('100.00'))
103 self.assertEqual(d.memo, '') 103 self.assertEqual(d.memo, '')
104 self.assertEqual(d.payer_status, 'verified') 104 self.assertEqual(d.payer_status, 'unverified')
105 self.assertEqual(d.payment_date, 105 self.assertEqual(d.payment_date,
106 datetime.datetime(2011, 1, 16, 5, 40, 33)) 106 datetime.datetime(2011, 1, 16, 5, 40, 33))
107 107
108 # user should not have got a badge for donating 108 # user should not have got a badge for donating
109 p = user.get_profile() 109 p = user.get_profile()