def test_times(self): self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True)) self.assertEqual(self.ts[0].response_time, 1) self.assertEqual(self.ts[1].response_time, 1) self.assertEqual(self.ts[2].response_time, 3) self.assertEqual(self.ts[3].response_time, 14)
def test_bound_is_integral(self): self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True)) self.assertTrue(is_integral(self.ts[0].response_time)) self.assertTrue(is_integral(self.ts[1].response_time)) self.assertTrue(is_integral(self.ts[2].response_time)) self.assertTrue(is_integral(self.ts[3].response_time))
def test_procs(self): self.assertFalse(ber.is_schedulable(1, self.ts, dont_use_slack=True)) self.assertFalse(ber.is_schedulable(2, self.ts, dont_use_slack=True)) self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True))