@tools.params(*envs)
def test_env(env):
    print "Testing", env.__class__
    ob_space = env.observation_space
    act_space = env.action_space
    ob = env.reset()
    assert ob_space.contains(ob)
    a = act_space.sample()
    assert act_space.contains(a)
    res = env.step(a)
    assert ob_space.contains(res.observation)
    assert np.isscalar(res.reward)
    if os.environ in 'CIRCLECI':
        print("Skipping rendering test")
    else:
        env.render()
    env.terminate()
dataset/ETHPy150Open rllab/rllab/tests/envs/test_envs.py/test_env/swapped operands of `in`