source: exist/trunk/python/ndgUtils/test_eXistConnector.py @ 3110

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

Attempts to eggify the ndg exist interfaces continue

Line 
1# unfortunately it looks like the exist server doesn't support introspection
2#    def showMethods(self):
3#        print self.xmlrpc.system.listMethods()
4       
5
6import unittest,os
7from eXistConnector import *
8
9class TestCase(unittest.TestCase): 
10
11    def testedict(self):
12        ''' Test the edict structure works '''
13        i=edict(a=1,b=2)
14        i.c=3
15        i['d']=4
16        correct={'a':1,'b':2,'c':3,'d':4}
17        for j in correct: self.assertEqual(correct[j],i[j])
18           
19if __name__=="__main__":
20    unittest.main()
Note: See TracBrowser for help on using the repository browser.