diff options
author | Shankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com> | 2019-04-09 13:57:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-09 13:57:08 +0000 |
commit | f528849faccc824d5f15ca36e64947a5df05e252 (patch) | |
tree | 58e6548fd79dd6914ab2b26160d8efe79b703bc5 /conductor | |
parent | 2429090503b9fefd4f1d01fd6a415e000023d576 (diff) | |
parent | d1784a21c3b0f437cb60c8516a150d732ba1c5ea (diff) |
Merge "Pyunit decision_path.py"
Diffstat (limited to 'conductor')
-rw-r--r-- | conductor/conductor/tests/unit/solver/optimizer/test_decision_path.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/conductor/conductor/tests/unit/solver/optimizer/test_decision_path.py b/conductor/conductor/tests/unit/solver/optimizer/test_decision_path.py new file mode 100644 index 0000000..11ea7c7 --- /dev/null +++ b/conductor/conductor/tests/unit/solver/optimizer/test_decision_path.py @@ -0,0 +1,41 @@ +# +# ------------------------------------------------------------------------- +# Copyright (C) 2019 IBM. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ------------------------------------------------------------------------- +# + +"""Test class for optimizer decision_path.py""" + +import unittest +from conductor.solver.optimizer.decision_path import DecisionPath + + +class TestDecisionPath(unittest.TestCase): + + def setUp(self): + self.decisionPath = DecisionPath() + + def test_decision_path(self): + self.assertEqual(0.0, self.decisionPath.cumulated_value) + self.assertEqual(0.0, self.decisionPath.cumulated_cost) + self.assertEqual(0.0, self.decisionPath.heuristic_to_go_value) + self.assertEqual(0.0, self.decisionPath.heuristic_to_go_cost) + self.assertEqual(0.0, self.decisionPath.total_value) + self.assertEqual(0.0, self.decisionPath.total_cost) + + +if __name__ == '__main__': + unittest.main() |