Changeset 13477
- Timestamp:
- 18 Nov 2015, 15:51:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/tests.py
r13387 r13477 123 123 delta = timedelta(days=8) 124 124 self.payment.creation_date -= delta 125 self.browser.open(self.payment_url) 126 self.browser.getLink("CollegePAY", index=0).click() 127 self.assertMatches( 128 '...This payment ticket is too old. Please create a new ticket...', 129 self.browser.contents) 130 delta = timedelta(days=2) 131 self.payment.creation_date += delta 132 self.browser.open(self.payment_url) 133 self.browser.getLink("CollegePAY", index=0).click() 134 self.assertMatches('...Total Amount Authorized:...', 135 self.browser.contents) 136 137 def test_interswitch_form_ticket_expired_tz(self): 138 # The form copes with timezones when calculating expirements. 139 # We should not have TZ data in timestamps processed, but it looks 140 # like we get some with imports :-/ 141 self.browser.getLink("CollegePAY", index=0).click() 142 delta = timedelta(days=8) 143 self.payment.creation_date -= delta 144 from pytz import timezone 145 self.payment.creation_date = timezone("Europe/Berlin").localize( 146 self.payment.creation_date) 125 147 self.browser.open(self.payment_url) 126 148 self.browser.getLink("CollegePAY", index=0).click()
Note: See TracChangeset for help on using the changeset viewer.