Ignore:
Timestamp:
20/11/08 15:36:44 (12 years ago)
Author:
cbyrom
Message:

Strip out code not relevant to MILK - mainly WCS and WMS stuff - also including the CSML server code + trackback code
Also tidy up structure of 'public' dir - setting up new 'style' dir and
centralising icons in icons dir + remove all unused icons, javascript and stylesheets.
Also strip out testcase code and populate new test directory structure.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/lib/Utilities.py

    r3842 r4469  
    211211    """ 
    212212    return [urllib.unquote(x) for x in string.split('|')] 
    213  
    214      
    215          
    216 import unittest 
    217  
    218 class TestCase(unittest.TestCase): 
    219     """ Tests as required """ 
    220  
    221     configFile='examples/example.config' 
    222     difFile='examples/neodc.eg1.dif' 
    223      
    224     def setUp(self): 
    225         # If pkg_resources is available assume the module is eggified and 
    226         # get a stream to the input data from the egg. 
    227         #try: 
    228         #    import pkg_resources 
    229         #    f = pkg_resources.resource_stream(__name__, self.configFile) 
    230         #except ImportError: 
    231             # Else take the input file from __file__ 
    232             #import os 
    233         self.config=myConfig(self.configFile) 
    234         f=file(self.difFile,'r') 
    235         self.difxml=f.read() 
    236             #f=file(os.path.join(os.path.basepath(__file__), self.configFile)) 
    237  
    238         #self.config=myConfig(f) 
    239  
    240     def testConfig(self): 
    241         print 'Discovery Icon [%s]'%self.config.get('DISCOVERY','icon') 
    242          
    243     def testidget(self): 
    244         self.assertEqual(idget(self.difxml),'NOCSDAT192') 
    245  
    246  
    247 if __name__=="__main__": 
    248     unittest.main() 
    249  
    250  
    251  
Note: See TracChangeset for help on using the changeset viewer.