5 from osm_policy_module
.core
.agent
import PolicyModuleAgent
8 class PolicyAgentTest(unittest
.TestCase
):
10 self
.agent
= PolicyModuleAgent()
12 def test_get_alarm_configs(self
):
13 with
open(os
.path
.join(os
.path
.dirname(__file__
), './examples/configure_scaling_full_example.json')) as file:
14 example
= json
.load(file)
15 alarm_configs
= self
.agent
._get
_alarm
_configs
(example
)
16 # TODO Improve assertions
17 self
.assertEqual(len(alarm_configs
), 2)
20 if __name__
== '__main__':