Ignore:
Timestamp:
17/12/07 14:28:17 (12 years ago)
Author:
lawrence
Message:

... and support for creation dates of objects as well ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/test_ndgDirectory.py

    r3156 r3158  
    66     
    77    def setUp(self):  
    8         pass     
     8        tc='/db/discovery/original/DIF/badc.nerc.ac.uk' 
     9        host='glue.badc.rl.ac.uk' 
     10        self.ndgDir=ndgDirectory(tc,host,docType='DIF') 
    911     
    1012    def testDirectory(self): 
    1113        ''' 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]) 
     14        print self.ndgDir.members 
     15        doc=self.ndgDir.get(self.ndgDir.members[0]) 
    1716        print doc 
     17         
     18    def testCreationDates(self): 
     19        '''Test the creation information''' 
     20        print self.ndgDir.created() 
     21        print self.ndgDir.created(self.ndgDir.members[0]) 
    1822         
    1923 
Note: See TracChangeset for help on using the changeset viewer.