- self.loop.run_until_complete(service.evaluate_policy('test_uuid'))
- scale.assert_called_with('test_nsr_id', 'test_group', '1', 'scale_in')
-
- @mock.patch.object(ScalingAlarmRepository, 'list')
- @mock.patch.object(ScalingAlarmRepository, 'get')
- @mock.patch.object(LcmClient, 'scale')
- @mock.patch('osm_policy_module.core.database.db')
- def test_evaluate_policy_scale_out_and_equal(self, database, scale, get_alarm, list_alarms):
+ self.loop.run_until_complete(service.evaluate_policy("test_uuid"))
+ scale.assert_called_with("test_nsr_id", "test_group", "1", "scale_in")
+
+ @mock.patch.object(ScalingAlarmRepository, "list")
+ @mock.patch.object(ScalingAlarmRepository, "get")
+ @mock.patch.object(LcmClient, "scale")
+ @mock.patch("osm_policy_module.core.database.db")
+ def test_evaluate_policy_scale_out_and_equal(
+ self, database, scale, get_alarm, list_alarms
+ ):