Exemplo n.º 1
0
 def _attach_genomes(self):
     for species in self.Species:
         attr_name = _Species.getComparaName(species)
         genome = Genome(Species=species, Release=self.Release,
                         account=self._account)
         self._genomes[species] = genome
         setattr(self, attr_name, genome)
Exemplo n.º 2
0
 def _attach_genomes(self):
     for species in self.Species:
         attr_name = _Species.getComparaName(species)
         genome = Genome(Species=species,
                         Release=self.Release,
                         account=self._account)
         self._genomes[species] = genome
         setattr(self, attr_name, genome)
Exemplo n.º 3
0
 def test_get_compara_name(self):
     """should correctly form valid names for assignment onto objects"""
     self.assertEqual(Species.getComparaName('pika'), 'Pika')
     self.assertEqual(Species.getComparaName('C.elegans'), 'Celegans')
     self.assertEqual(Species.getComparaName('Caenorhabditis elegans'),
             'Celegans')
Exemplo n.º 4
0
 def test_get_compara_name(self):
     """should correctly form valid names for assignment onto objects"""
     self.assertEqual(Species.getComparaName('pika'), 'Pika')
     self.assertEqual(Species.getComparaName('C.elegans'), 'Celegans')
     self.assertEqual(Species.getComparaName('Caenorhabditis elegans'),
                      'Celegans')