def test_dpcp_cpp_no_req(self): lb.apply_lp_dpcp_bounds(self.ts_no_req, {}) self.assertEqual(self.ts_no_req[0].blocked, 0) self.assertEqual(self.ts_no_req[0].suspended, 0) self.assertEqual(self.ts_no_req[1].blocked, 0) self.assertEqual(self.ts_no_req[1].suspended, 0) self.assertEqual(self.ts_no_req[2].blocked, 0) self.assertEqual(self.ts_no_req[2].suspended, 0)
def test_dpcp_cpp(self): lb.apply_lp_dpcp_bounds(self.ts, self.resource_locality)
def test_dpcp_py(self): lb.apply_lp_dpcp_bounds(self.ts, self.resource_locality, use_py=True)