Changeset 14874 for main


Ignore:
Timestamp:
24 Oct 2017, 08:25:36 (7 years ago)
Author:
Henrik Bettermann
Message:

Improve tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/tests.py

    r13020 r14874  
    6767        self.assertMatches('...Amount Authorized...',
    6868                           self.browser.contents)
    69         self.assertMatches(
    70             '...<span>40000.0</span>...',
    71             self.browser.contents)
     69        self.assertTrue(
     70            '<span>40000.0</span>' in self.browser.contents)
    7271        self.payment_url = self.browser.url
    7372        self.browser.getLink("CollegePAY", index=0).click()
    74         self.assertMatches('...<input type="hidden" name="pay_item_id" value="0000" />...',
    75                            self.browser.contents)
    76         self.assertMatches('...Total Amount Authorized:...',
     73        self.assertTrue('<input type="hidden" name="pay_item_id" value="0000" />' in
    7774                           self.browser.contents)
    7875        self.assertEqual(self.student.current_mode, 'ug_ft')
    79         self.assertMatches(
    80             '...<input type="hidden" name="amount" value="4000000" />...',
    81             self.browser.contents)
    82         self.assertMatches(
    83             '...item_name="School Fee" item_amt="4000000" bank_id="00" acct_num="00000000"...',
     76        self.assertTrue(
     77            '<input type="hidden" name="amount" value="4000000" />' in
     78            self.browser.contents)
     79        self.assertTrue(
     80            'item_name="School Fee" item_amt="3985000" bank_id="00" acct_num="00000000"' in
    8481            self.browser.contents)
    8582
Note: See TracChangeset for help on using the changeset viewer.