source: exist/branches/proglue_production_rev4605_xquery4884/python/ndgutilstests/test_ndgXqueries.py @ 4896

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/branches/proglue_production_rev4605_xquery4884/python/ndgutilstests/test_ndgXqueries.py
Revision 4896, 538 bytes checked in by sdonegan, 11 years ago (diff)

Revised compound code - does not include actual egg

Line 
1import unittest
2from ndgUtils.ndgXqueries import ndgXqueries
3class TestCase(unittest.TestCase):
4   
5    def setUp(self):
6        self.ndgx=ndgXqueries()
7    def test_xqueryLoad(self):
8        print self.ndgx.keys()
9    def test_xqueryHelp(self):
10        ''' Testing that the help string in xqueries is returned correctly '''
11        h=self.ndgx.help('csml')
12        r=' Return a specific csml document when TargetCollection and LocalID are overwritten '
13        self.assertEqual(h,r)
14       
15if __name__=="__main__":
16    unittest.main()
Note: See TracBrowser for help on using the repository browser.