Ignore:
Timestamp:
18 Dec 2012, 17:25:36 (12 years ago)
Author:
Henrik Bettermann
Message:

Configure repeater fees.

Fix test. assertMatches is not suitable for testing exact values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r9789 r9811  
    3232#   If you enable this, please make sure the external services
    3333#   do exist really and are not bothered by being spammed by a test programme.
    34 EXTERNAL_TESTS = True
     34EXTERNAL_TESTS = False
    3535
    3636def external_test(func):
     
    118118        self.assertMatches('...Total Amount Authorized:...',
    119119                           self.browser.contents)
    120         self.assertMatches(
    121             '...<input type="hidden" name="amount" value="3710000.0" />...',
    122             self.browser.contents)
    123         self.assertMatches(
    124             '...item_name="School Fee" item_amt="3380000" bank_id="120" acct_num="1771180233"...',
    125             self.browser.contents)
    126         self.assertMatches(
    127             '...item_name="Dalash" item_amt="180000" bank_id="117" acct_num="1013196791"...',
    128             self.browser.contents)
    129         self.assertMatches(
    130             '...item_name="BT Education" item_amt="120000" bank_id="117" acct_num="1010764827"...',
     120        self.assertTrue(
     121            '<input type="hidden" name="amount" value="3660000.0" />' in
     122            self.browser.contents)
     123        self.assertTrue(
     124            'item_name="School Fee" item_amt="3330000" bank_id="120" acct_num="1771180233"' in
     125            self.browser.contents)
     126        self.assertTrue(
     127            'item_name="Dalash" item_amt="180000" bank_id="117" acct_num="1013196791"' in
     128            self.browser.contents)
     129        self.assertTrue(
     130            'item_name="BT Education" item_amt="120000" bank_id="117" acct_num="1010764827"' in
    131131            self.browser.contents)
    132132
Note: See TracChangeset for help on using the changeset viewer.