def test_jacobian_runs_multiple_times(self): '''Checks if jacobian can be calculated multiple times.''' input = read_gmm_instance(TEST_INPUT_FILE_NAME, False) self.test.prepare(input) func = self.test.calculate_jacobian self.assertTrue(utils.can_objective_run_multiple_times(func))
def test_objective_runs_multiple_times(self): '''Checks if objective can be calculated multiple times.''' input = read_ba_instance(TEST_INPUT_FILE_NAME) self.test.prepare(input) func = self.test.calculate_objective self.assertTrue(utils.can_objective_run_multiple_times(func))
def test_complicated_jacobian_runs_multiple_times(self): '''Checks if jacobian can be calculated multiple times for complicated case (with us).''' input = read_hand_instance(MODEL_PATH, COMPLICATED_FILE_NAME, True) self.test.prepare(input) func = self.test.calculate_jacobian self.assertTrue(utils.can_objective_run_multiple_times(func))
def test_simple_jacobian_runs_multiple_times(self): '''Checks if jacobian can be calculated multiple times for simple case (without us).''' input = read_hand_instance(MODEL_PATH, SIMPLE_FILE_NAME, False) self.test.prepare(input) func = self.test.calculate_jacobian self.assertTrue(utils.can_objective_run_multiple_times(func))