class HistoryTests(unittest.TestCase): def setUp(self): self.api = Genes() self.api.queries = Queries(connectionFactory) def testGetCVTermHash(self): result = self.api._getHistoryCvtermPropTypeIDs() print Formatter(result).formatJSON() def testGetGenesWithHistoryChanges(self): result = self.api._getGenesWithHistoryChanges(16, '2010-03-03') print Formatter(result).formatJSON() def testCombinedHistory(self): result = self.api.annotation_changes( taxonomyID='5671', since='2009-10-03' ) print Formatter(result).formatJSON()