def testAccessEntityPolymerFeatures(self):
     """Test case - access cached entity polymer info from full cache"""
     try:
         epe = EntityPolymerExtractor(
             self.__cfgOb,
             saveCachePath=self.__fullEntitySaveCachePath,
             useCache=True,
             saveCacheKwargs=self.__fullCacheKwargs)
         eCount = epe.getEntryCount()
         logger.info("Entry count %d", eCount)
         self.assertGreaterEqual(eCount, self.__entryLimitFull)
         #
         unpL = epe.getRefSeqAccessions("UNP")
         logger.info("Ref seq count %d", len(unpL))
         self.assertGreaterEqual(len(unpL), 1)
         #
         testOp = False
         if testOp:
             for entryId in ["1CP9"]:
                 for entityId in ["1", "2"]:
                     uL = epe.getEntityRefSeqAccessions(
                         "UNP", entryId, entityId)
                     logger.debug("UNP for %s %s %r", entryId, entityId, uL)
             #
     except Exception as e:
         logger.exception("Failing with %s", str(e))
         self.fail()
 def testAccessEntityPolymerFeatures(self):
     """Test case - access cached entity polymer info from test cache"""
     try:
         epe = EntityPolymerExtractor(self.__cfgOb,
                                      exdbDirPath=self.__exdbCacheDirPath,
                                      useCache=False,
                                      cacheKwargs=self.__cacheKwargs)
         eCount = epe.getEntryCount()
         logger.info("Entry count %d", eCount)
         self.assertGreaterEqual(eCount, self.__entryLimitTest)
         #
         unpL = epe.getRefSeqAccessions("UNP")
         logger.info("Ref seq count %d", len(unpL))
         self.assertGreaterEqual(len(unpL), 1)
         #
         for entryId in ["3RER"]:
             for entityId in ["1"]:
                 uL = epe.getEntityRefSeqAccessions("UNP", entryId,
                                                    entityId)
                 logger.info("UNP for %s %s %r", entryId, entityId, uL)
         #
     except Exception as e:
         logger.exception("Failing with %s", str(e))
         self.fail()