Changeset 9811 for main


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.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
Files:
2 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
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py

    r9737 r9811  
    2727from waeup.kwarapoly.interfaces import MessageFactory as _
    2828
    29 PAYMENT_LEVELS = (10, 100, 200, 210, 300, 400, 500, 510, 600, 999)
     29
     30# 10  = PreND (1)
     31# 100 = ND1 (2)
     32# 110 = ND1R (3)
     33# 200 = ND2 (4)
     34# 210 = ND2R (5)
     35# 300 = ND3 (6)
     36# 400 = HND1 (7)
     37# 410 = HND1R (8)
     38# 500 = HND2 (9)
     39# 510 = HND2R (10)
     40# 600 = HND3 (11)
     41# 999 = PGD (12)
     42
     43PAYMENT_LEVELS = (10, 100, 110, 200, 210, 300, 400, 410, 500, 510, 600, 999)
    3044
    3145FEES_PARAMS = (
     
    3852FEES_VALUES = (
    3953        (
    40           (
    41             (34400.0, 36600.0, 29500.0, 28800.0, 0.0, 38700.0, 30700.0, 29900.0, 0.0, 47250.0), # science
    42             (34400.0, 35100.0, 28000.0, 27300.0, 0.0, 37200.0, 29200.0, 28400.0, 0.0, 47250.0)  # arts
     54          ( # 10       100      110      200      210     300    400     410      500      510     600   999
     55            (34400.0, 36600.0, 28800.0, 29500.0, 28800.0, 0.0, 38700.0, 29900.0, 30700.0, 29900.0, 0.0, 47250.0), # science
     56            (34400.0, 35100.0, 27300.0, 28000.0, 27300.0, 0.0, 37200.0, 28400.0, 29200.0, 28400.0, 0.0, 47250.0)  # arts
    4357          ), # local
    44           (
    45             (49500.0, 52100.0, 38850.0, 35900.0, 0.0, 55600.0, 40850.0, 38600.0, 0.0, 71880.0), # science
    46             (49500.0, 50600.0, 37350.0, 34400.0, 0.0, 54100.0, 39350.0, 37100.0, 0.0, 71880.0)  # arts
     58          ( # 10       100      110      200      210     300    400     410      500      510     600   999
     59            (49500.0, 52100.0, 35900.0, 38850.0, 35900.0, 0.0, 55600.0, 38600.0, 40850.0, 38600.0, 0.0, 71880.0), # science
     60            (49500.0, 50600.0, 34400.0, 37350.0, 34400.0, 0.0, 54100.0, 37100.0, 39350.0, 37100.0, 0.0, 71880.0)  # arts
    4761          ), # non-local
    4862        ), # ft
    4963        (
    50           (
    51             (0.0, 39400.0, 30900.0, 0.0, 30900.0, 39900.0, 31050.0, 0.0, 31050.0, 0.0), # science
    52             (0.0, 37900.0, 29400.0, 0.0, 29400.0, 38400.0, 29550.0, 0.0, 29550.0, 0.0)  # arts
     64          ( # 10   100     110    200    210   300      400     410   500     510   600     999
     65            (0.0, 39400.0, 0.0, 30900.0, 0.0, 30900.0, 39900.0, 0.0, 31050.0, 0.0, 31050.0, 0.0), # science
     66            (0.0, 37900.0, 0.0, 29400.0, 0.0, 29400.0, 38400.0, 0.0, 29550.0, 0.0, 29550.0, 0.0)  # arts
    5367          ), # local
    54           (
    55             (0.0, 54600.0, 32350.0, 0.0, 32350.0, 57100.0, 42350.0, 0.0, 42350.0, 0.0), # science
    56             (0.0, 53100.0, 30850.0, 0.0, 30850.0, 55600.0, 40850.0, 0.0, 40850.0, 0.0)  # arts
     68          ( # 10   100     110    200    210   300      400     410   500     510   600     999
     69            (0.0, 54600.0, 0.0, 32350.0, 0.0, 32350.0, 57100.0, 0.0, 42350.0, 0.0, 42350.0, 0.0), # science
     70            (0.0, 53100.0, 0.0, 30850.0, 0.0, 30850.0, 55600.0, 0.0, 40850.0, 0.0, 40850.0, 0.0)  # arts
    5771          ), # non-local
    5872        ), # pt
Note: See TracChangeset for help on using the changeset viewer.