def test_does_not_modify_action(self): inner_env = CartpoleEnv(obs_noise=5.) env = NormalizedEnv(inner_env, scale_reward=10.) a = env.action_space.sample() a_copy = a env.reset() env.step(a) self.assertEquals(a, a_copy)
def test_does_not_modify_action(self): inner_env = PointEnv(goal=(1., 2.)) env = NormalizedEnv(inner_env, scale_reward=10.) a = env.action_space.high + 1. a_copy = a env.reset() env.step(a) assert np.array_equal(a, a_copy) env.close()