Changeset 3521


Ignore:
Timestamp:
Aug 22, 2006, 10:24:17 AM (18 years ago)
Author:
ole
Message:

Added testing of www-b

Location:
tools/demos
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • tools/demos/test_flood_database.py

    r3517 r3521  
    1212"""
    1313
     14external = True
     15
    1416
    1517import urllib   
     
    1719#from caching import cache
    1820
    19 base_url = 'http://www.ga.gov.au/oracle/flood/'
    20 servlet_base_url = 'http://www.ga.gov.au/'
     21if external is True:
     22    base_url = 'http://www-b.ga.gov.au/oracle/flood/'
     23    servlet_base_url = 'http://www-b.ga.gov.au/'
     24else:
     25    base_url = 'http://www.ga.gov.au/oracle/flood/'
     26    servlet_base_url = 'http://www.ga.gov.au/'   
     27   
    2128
    2229def test_site():
     
    147154 
    148155test_site()
    149 test_database('flood_studies_all.html')
    150156
    151157
     158if external is True:
     159    test_database('flood_studies_all_b.html')
     160else:
     161    test_database('flood_studies_all.html')
    152162       
Note: See TracChangeset for help on using the changeset viewer.