MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / test_init

Method test_init

tests/control/test_mpc.py:10–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8
9class 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

Callers

nothing calls this directly

Calls 3

get_modular_microgridFunction · 0.90
assertEqualMethod · 0.80

Tested by

no test coverage detected