source: DPPP/kml/csml2kml/python/csml2kml/csml2kml/tests/testUtils.py @ 3593

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/DPPP/kml/csml2kml/python/csml2kml/csml2kml/tests/testUtils.py@3593
Revision 3593, 584 bytes checked in by mkochan, 13 years ago (diff)

Changed tests in "csml2kml" to use the egg properly.

Line 
1import csml2kml.utils
2
3# print utils.toDegreesMinutesSeconds( 123.5375675435435345)
4# print utils.toDegreesMinutesSeconds(- 43.0000100000000000)
5# print utils.toDegreesMinutesSeconds(  23.3333333333333433)
6
7print 'Script loaded. Testing utils.wget() only.'
8n = 10
9print 'Retrieving ' + str(n) + ' times.'
10for i in range(n):
11    content = utils.wget('http://bond.badc.rl.ac.uk:8089/dummyGeoServer/GetStationCSMLFeatures?gml_id=TWL1')
12    if content:
13        # print content
14        print 'Retrieval successful (edit testUtils.py to see it).'
15    else:
16        print 'Retrieval error.'
Note: See TracBrowser for help on using the repository browser.