def testTopLevelIdsUnique(self):
     datasetId = "a"
     idStr = "b"
     dataset = datasets.Dataset(datasetId)
     readGroupSet = reads.AbstractReadGroupSet(dataset, idStr)
     variantSet = variants.AbstractVariantSet(dataset, idStr)
     self.assertNotEqual(readGroupSet.getId(), variantSet.getId())
示例#2
0
 def setUp(self):
     self._variantSetName = "testVariantSet"
     self._dataset = datasets.Dataset("datasetId")
     self._variantSet = variants.AbstractVariantSet(self._dataset,
                                                    self._variantSetName)
 def getVariantSet(self):
     return variants.AbstractVariantSet(self.getDataset(), "variantSet")
示例#4
0
 def testNonexistentVariantSet(self):
     # a request for a variant set that doesn't exist should throw an error
     variantSet = variants.AbstractVariantSet(self.dataset, 'notFound')
     self.request.variant_set_id = variantSet.getId()
     with self.assertRaises(exceptions.VariantSetNotFoundException):
         self.backend.variantsGenerator(self.request)