source: exist/trunk/python/ndgUtils/test_xqueries.py @ 3127

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/python/ndgUtils/test_xqueries.py@3127
Revision 3127, 700 bytes checked in by lawrence, 12 years ago (diff)

This verison of ndgUtils does build to an egg. Next we need to
get dif2moles round trip testing working ... and solve
the related URL problem, and then we can work on the changes
to ndgObject which arise ... before trying to replace
the ows_server code.

Line 
1import unittest
2import ndgXqueries
3from eXistInterface import ndg_eXist
4from ndgObject import ndgObject
5import ConfigParser
6
7class TestCase(unittest.TestCase):
8   
9    def setUp(self): 
10        f='test.config'
11        self.c=ConfigParser.ConfigParser()
12        self.c.read(f)
13        self.xq=ndgXqueries.ndgXqueries()
14        self.xmldb=ndg_eXist(db='glue.badc.rl.ac.uk')
15        self.testDElist=['badc.nerc.ac.uk__NDG-B1__dataent_COAPEC']
16       
17    def test_moles2difRoundTrip(self):
18        ''' Tests the moles 2 dif round tripping '''
19        moles1=self.testDElist[0]
20        dif1=moles1.replace('NDG-B1','DIF')
21       
22       
23       
24       
25if __name__=="__main__":
26    unittest.main()
Note: See TracBrowser for help on using the repository browser.