Changeset 4076


Ignore:
Timestamp:
Dec 13, 2006, 5:55:42 PM (17 years ago)
Author:
sexton
Message:

add unit test for part of sww2timeseries functionality

Location:
anuga_core/source/anuga/abstract_2d_finite_volumes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_util.py

    r3995 r4076  
    11911191        #clean up!
    11921192        os.rmdir(root_dir)
     1193
     1194    def test_check_list(self):
     1195
     1196        check_list(['stage','xmomentum'])
     1197
     1198       
    11931199       
    11941200#-------------------------------------------------------------
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r4065 r4076  
    826826                    'ymomentum', 'speed', 'bearing', 'elevation']
    827827
    828     for i,j in enumerate(quantity):
    829         quantity[i] = quantity[i].lower()
    830     p = list(set(quantity).difference(set(all_quantity)))
    831     if len(p) <> 0:
    832         msg = 'Quantities %s do not exist - please try again' %p
    833         raise Exception, msg
     828    import sys
     829    if sys.platform == 'win32':
     830        for i,j in enumerate(quantity):
     831            quantity[i] = quantity[i].lower()
     832        p = list(set(quantity).difference(set(all_quantity)))
     833        if len(p) <> 0:
     834            msg = 'Quantities %s do not exist - please try again' %p
     835            raise Exception, msg
    834836       
    835837    return
Note: See TracChangeset for help on using the changeset viewer.