(self)
| 8 | |
| 9 | class TestMPC(TestCase): |
| 10 | def test_init(self): |
| 11 | microgrid = get_modular_microgrid() |
| 12 | mpc = ModelPredictiveControl(microgrid) |
| 13 | self.assertTrue(mpc.is_modular) |
| 14 | self.assertEqual(mpc.horizon, 1) |
| 15 | |
| 16 | def test_run_with_load_pv_battery_grid(self): |
| 17 | from pymgrid.modules import RenewableModule, LoadModule |
nothing calls this directly
no test coverage detected