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

Method test_init

tests/control/test_rbc.py:13–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11 self.rbc = RuleBasedControl(get_modular_microgrid())
12
13 def test_init(self):
14 microgrid = get_modular_microgrid()
15 self.assertEqual(microgrid, self.rbc.microgrid)
16 self.assertEqual(microgrid, deepcopy(self.rbc).microgrid)
17
18 def test_priority_list(self):
19 rbc = deepcopy(self.rbc)

Callers

nothing calls this directly

Calls 2

get_modular_microgridFunction · 0.90
assertEqualMethod · 0.80

Tested by

no test coverage detected