def test_observation_randomizer(self):
    randomizer = EnvObservationRandomizer([DummyObservationRandomizer('r1', DummyRandomizerParameter('foo', 0.0)), DummyObservationRandomizer('r2', DummyRandomizerParameter('bar', 1.0))])
    assert (len(randomizer.get_randomizers()) == 2)
    assert (len(randomizer.get_parameters()) == 2)
    obs = randomizer.randomize({}, self.random_state)
    assert (obs['foo'] == 0.0)
    assert (obs['bar'] == 1.0)
def test_observation_randomizer(self):
    randomizer = EnvObservationRandomizer([DummyObservationRandomizer('r1', DummyRandomizerParameter('foo', 0.0)), DummyObservationRandomizer('r2', DummyRandomizerParameter('bar', 1.0))])
    assert (len(randomizer.get_randomizers()) == 2)
    assert (len(randomizer.get_parameters()) == 2)
    obs = randomizer.randomize({}, self.random_state)
    assert (obs['foo'] == 0.0)
    assert (obs['bar'] == 1.0)