def getExpressionAnalysis(self, id_): """Return an expressionAnalysis record with the specified id. Or raises expressionAnalysisNotFoundException otherwise. """ if id_ not in self._expressionAnalysisIdMap: raise exceptions.ObjectNotFoundException(id_) return self._expressionAnalysisIdMap[id_]
def getFusionDetection(self, id_): """Return a fusionDetection record with the specified id. Or raises fusionDetectionNotFoundException otherwise. """ if id_ not in self._fusionDetectionIdMap: raise exceptions.ObjectNotFoundException(id_) return self._fusionDetectionIdMap[id_]
def getVariantCalling(self, id_): """Return a variantCalling record with the specified id. Or raises variantCallingNotFoundException otherwise. """ if id_ not in self._variantCallingIdMap: raise exceptions.ObjectNotFoundException(id_) return self._variantCallingIdMap[id_]
def getAlignment(self, id_): """Return an Alignment record with the specified id. Or raises alignmentNotFoundException otherwise. """ if id_ not in self._alignmentIdMap: raise exceptions.ObjectNotFoundException(id_) return self._alignmentIdMap[id_]
def getSequencing(self, id_): """Return a Sequencing record with the specified id. Or raises 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.assertEqual(response.status_code, 404) self.assertFalse(frontend.app.log_exception.called)