(self)
| 87 | |
| 88 | @pass_if_parent |
| 89 | def test_get_obs(self): |
| 90 | env = deepcopy(self.env) |
| 91 | obs = env._get_obs() |
| 92 | |
| 93 | if self.observation_keys: |
| 94 | expected_obs = env.state_series(normalized=True).loc[pd.IndexSlice[:, :, self.observation_keys]].values |
| 95 | else: |
| 96 | expected_obs = env.state_series(normalized=True).values |
| 97 | |
| 98 | self.assertEqual(obs, expected_obs) |
| 99 | |
| 100 | @pass_if_parent |
| 101 | def test_steps(self): |
nothing calls this directly
no test coverage detected