예제 #1
0
 def test_genes_per_group_nonproportional_6(self):
     """tests the genes_per_group_proportional function"""
     genes_per_group = human.genes_per_group_nonproportional(2000, [1, 2, 3, 4, 5, 6])
     self.assertEquals(333, genes_per_group[1])
     self.assertEquals(333, genes_per_group[2])
     self.assertEquals(333, genes_per_group[3])
     self.assertEquals(333, genes_per_group[4])
     self.assertEquals(333, genes_per_group[5])
     self.assertEquals(335, genes_per_group[6])
예제 #2
0
 def test_genes_per_group_nonproportional_one(self):
     """tests the genes_per_group_proportional function"""
     genes_per_group = human.genes_per_group_nonproportional(2000, [1])
     self.assertEquals(2000, genes_per_group[1])
예제 #3
0
 def test_genes_per_group_nonproportional(self):
     """tests the genes_per_group_proportional function"""
     genes_per_group = human.genes_per_group_nonproportional(2000, [1, 2, 3])
     self.assertEquals(666, genes_per_group[1])
     self.assertEquals(666, genes_per_group[2])
     self.assertEquals(668, genes_per_group[3])