Пример #1
0
 def testGetFeatureSet(self):
     path = "/featuresets"
     for dataset in self.dataRepo.getDatasets():
         for featureSet in dataset.getFeatureSets():
             responseObject = self.sendGetObject(path, featureSet.getId(),
                                                 protocol.FeatureSet)
             self.verifyFeatureSetsEqual(responseObject, featureSet)
         for badId in self.getBadIds():
             featureSet = features.AbstractFeatureSet(dataset, badId)
             self.verifyGetMethodFails(path, featureSet.getId())
     for badId in self.getBadIds():
         self.verifyGetMethodFails(path, badId)
Пример #2
0
 def getFeatureSet(self):
     return sequenceAnnotations.AbstractFeatureSet(self.getDataset(),
                                                   "featureSet")
Пример #3
0
 def setUp(self):
     self._featureSetName = "testFeatureSet"
     self._backend = backend.Backend(datarepo.AbstractDataRepository())
     self._dataset = datasets.AbstractDataset(self._backend)
     self._featureSet = features.AbstractFeatureSet(self._dataset,
                                                    self._featureSetName)
 def setUp(self):
     self._featureSetName = "testFeatureSet"
     self._dataset = datasets.Dataset("test_ds")
     self._featureSet = features.AbstractFeatureSet(self._dataset,
                                                    self._featureSetName)