示例#1
0
 def testParameterUpdateFailure(self):
     parameter = get_range_parameter()
     sqa_parameter = self.encoder.parameter_to_sqa(parameter)
     parameter._name = "new"
     sqa_parameter_2 = self.encoder.parameter_to_sqa(parameter)
     with self.assertRaises(ImmutabilityError):
         sqa_parameter.update(sqa_parameter_2)
示例#2
0
 def setUp(self):
     init_test_engine_and_session_factory(force_init=True)
     self.config = SQAConfig()
     self.encoder = Encoder(config=self.config)
     self.decoder = Decoder(config=self.config)
     self.experiment = get_experiment_with_batch_trial()
     self.dummy_parameters = [
         get_range_parameter(),  # w
         get_range_parameter2(),  # x
     ]