def test_env_randomization(self):
    randomization = EnvRandomization(parameter_randomizer=EnvParameterRandomizer(DummyEnvParameter()), observation_randomizer=EnvObservationRandomizer([DummyObservationRandomizer('r1', DummyRandomizerParameter('foo', 0.0))]), action_randomizer=EnvActionRandomizer([]), simulation_randomizer=EnvSimulationRandomizer([]))
    randomization.update_parameter('observation.r1:foo', 0.5)
    parameter = randomization.get_parameter('observation.r1:foo')
    assert (parameter.get_value() == 0.5)
def test_env_randomization(self):
    randomization = EnvRandomization(parameter_randomizer=EnvParameterRandomizer(DummyEnvParameter()), observation_randomizer=EnvObservationRandomizer([DummyObservationRandomizer('r1', DummyRandomizerParameter('foo', 0.0))]), action_randomizer=EnvActionRandomizer([]), simulation_randomizer=EnvSimulationRandomizer([]))
    randomization.update_parameter('observation.r1:foo', 0.5)
    parameter = randomization.get_parameter('observation.r1:foo')
    assert (parameter.get_value() == 0.5)