summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudarshan Kumar <sudars19@in.ibm.com>2019-04-08 18:47:18 +0530
committerSudarshan Kumar <sudars19@in.ibm.com>2019-04-08 18:48:44 +0530
commitd1784a21c3b0f437cb60c8516a150d732ba1c5ea (patch)
treeb43deea35f431d30118e6211e1eb0cd1098e45bd
parent9d1da5ec7f01d0a9c1d7344786eb0be8dc24138f (diff)
Pyunit decision_path.py
Pyunit decision_path.py Issue-ID: OPTFRA-302 Change-Id: Ib495c52324dbe28a294321406130eda7e53659e2 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
-rw-r--r--conductor/conductor/tests/unit/solver/optimizer/test_decision_path.py41
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()