def getExpressionAnalysis(self, id_): """ Returns the expressionAnalysis with the specified id, or raises a expressionAnalysisNotFoundException otherwise. """ if id_ not in self._expressionAnalysisIdMap: raise exceptions.ObjectNotFoundException(id_) return self._expressionAnalysisIdMap[id_]
def getFusionDetection(self, id_): """ Returns the fusionDetection with the specified id, or raises a fusionDetectionNotFoundException otherwise. """ if id_ not in self._fusionDetectionIdMap: raise exceptions.ObjectNotFoundException(id_) return self._fusionDetectionIdMap[id_]
def getVariantCalling(self, id_): """ Returns the variantCalling with the specified id, or raises a variantCallingNotFoundException otherwise. """ if id_ not in self._variantCallingIdMap: raise exceptions.ObjectNotFoundException(id_) return self._variantCallingIdMap[id_]
def getAlignment(self, id_): """ Returns the alignment with the specified id, or raises a alignmentNotFoundException otherwise. """ if id_ not in self._alignmentIdMap: raise exceptions.ObjectNotFoundException(id_) return self._alignmentIdMap[id_]
def getSequencing(self, id_): """ Returns the sequencing with the specified id, or raises a sequencingNotFoundException otherwise. """ if id_ not in self._sequencingIdMap: raise exceptions.ObjectNotFoundException(id_) return self._sequencingIdMap[id_]
def testObjectNotFoundException(self): exception = exceptions.ObjectNotFoundException() response = frontend.handleException(exception) self.assertEquals(response.status_code, 404) self.assertFalse(frontend.app.log_exception.called)