Beispiel #1
0
 def test_get_value(self):
     pg = peakgroup.GuiPeakGroup(0.1, 100, 50, 60, None)
     self.assertAlmostEqual(pg.get_value("m_score"), 0.1)
     self.assertAlmostEqual(pg.get_value("Intensity"), 100)
     self.assertAlmostEqual(pg.get_value("leftWidth"), 50)
     self.assertAlmostEqual(pg.get_value("rightWidth"), 60)
     self.assertRaises(Exception, pg.get_value, "dummy")
Beispiel #2
0
 def test_create_pg(self):
     pg = peakgroup.GuiPeakGroup(0.1, 100, 50, 60, None)