コード例 #1
0
 def test_more_than_fraction_selected(self):
     m = Multipeptide()
     self.assertIsNone(m.get_id())
     m.insert("42_0", self.mockPrecursorGroup)
     m.set_nr_runs(1)
     self.assertTrue(m.more_than_fraction_selected(0.1))
     self.assertTrue(m.more_than_fraction_selected(0.6))
     m.set_nr_runs(2)
     self.assertTrue(m.more_than_fraction_selected(0.1))
     self.assertFalse(m.more_than_fraction_selected(0.6))
コード例 #2
0
 def test_more_than_fraction_selected(self):
     m = Multipeptide()
     self.assertIsNone(m.get_id())
     m.insert("42_0", self.mockPrecursorGroup)
     m.set_nr_runs(1)
     self.assertTrue(m.more_than_fraction_selected(0.1))
     self.assertTrue(m.more_than_fraction_selected(0.6))
     m.set_nr_runs(2)
     self.assertTrue(m.more_than_fraction_selected(0.1))
     self.assertFalse(m.more_than_fraction_selected(0.6))
コード例 #3
0
 def test_getId(self):
     m = Multipeptide()
     self.assertIsNone(m.get_id())
     m.insert("42_0", self.mockPrecursorGroup)
     self.assertEqual(m.get_id(), "144")
コード例 #4
0
 def test_getId(self):
     m = Multipeptide()
     self.assertIsNone(m.get_id())
     m.insert("42_0", self.mockPrecursorGroup)
     self.assertEqual(m.get_id(), "144")