Pyunit decision_path.py 27/84527/1
authorSudarshan Kumar <sudars19@in.ibm.com>
Mon, 8 Apr 2019 13:17:18 +0000 (18:47 +0530)
committerSudarshan Kumar <sudars19@in.ibm.com>
Mon, 8 Apr 2019 13:18:44 +0000 (18:48 +0530)
Pyunit decision_path.py

Issue-ID: OPTFRA-302
Change-Id: Ib495c52324dbe28a294321406130eda7e53659e2
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
conductor/conductor/tests/unit/solver/optimizer/test_decision_path.py [new file with mode: 0644]

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 (file)
index 0000000..11ea7c7
--- /dev/null
@@ -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()