예제 #1
0
 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)
예제 #2
0
 def test_dpcp_cpp(self):
     lb.apply_lp_dpcp_bounds(self.ts, self.resource_locality)
예제 #3
0
 def test_dpcp_py(self):
     lb.apply_lp_dpcp_bounds(self.ts, self.resource_locality, use_py=True)