Ignore:
Timestamp:
16/02/09 17:11:08 (11 years ago)
Author:
cbyrom
Message:

Add a new feed for collecting corrections info submitted by users of
the atom editor + create new method on client to do this + add new
tests and tidy up some code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/unittests/clients/xmldb/eXist/testfeedclient.py

    r4978 r4983  
    4444            self.fail("Should not have thrown an exception") 
    4545 
     46    def testCreateCorrectionsFeedEntry(self): 
     47        try: 
     48            self.feedClient.createCorrectionsFeedEntry('some title info', 
     49                                                       'some body info') 
     50        except: 
     51            self.fail("Should not have thrown an exception") 
     52 
     53 
     54 
    4655    def testInvalidCollectionCreateAtomFeed(self): 
    4756        try: 
     
    5362        except Exception, e: 
    5463            self.fail("Should have thrown a FeedClientError exception") 
    55          
    56     def testValidGetRESTfulData(self): 
    57         atom = self.utils.createAtomInEXist(tc.xmlString) 
    58         self.createdAtoms.append(atom.getFullPath()) 
    59         doc = self.feedClient.getRESTfulData(atom.getFullPath()) 
    60         self.assertNotEquals(None, doc) 
    61          
    62     def testInvalidGetRESTfulData(self): 
    63         self.assertEquals(None, self.feedClient.getRESTfulData(self.VALID_FILE_PATH)) 
    6464 
    6565    def testGetAtomFeed(self): 
Note: See TracChangeset for help on using the changeset viewer.