source: exist/trunk/python/ndgUtils/test_ndgDirectory.py @ 3156

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

support for mdip and a stub ndgDirectory routine (sue to complete)

Line 
1from ndgDirectory import ndgDirectory
2
3import unittest
4
5class TestCase(unittest.TestCase):
6   
7    def setUp(self): 
8        pass   
9   
10    def testDirectory(self):
11        ''' Test the ability to get members of a directory and the first one of them '''
12        tc='/db/discovery/original/DIF/badc.nerc.ac.uk'
13        host='glue.badc.rl.ac.uk'
14        ndgDir=ndgDirectory(tc,host,docType='DIF')
15        print ndgDir.members
16        doc=ndgDir.get(ndgDir.members[0])
17        print doc
18       
19
20if __name__=="__main__":
21    unittest.main()
Note: See TracBrowser for help on using the repository browser.