Commit 4b33c0cd authored by Georgios Dagkakis's avatar Georgios Dagkakis

new examples added in test

parent d869ea5a
......@@ -161,4 +161,25 @@ class SimulationExamples(TestCase):
from dream.simulation.Examples.ServerWithShift4 import main
result = main()
self.assertEquals(result['parts'], 2)
self.assertTrue(29.99 < result["working_ratio"] < 30.01)
\ No newline at end of file
self.assertTrue(29.99 < result["working_ratio"] < 30.01)
def testSettingWip1(self):
from dream.simulation.Examples.SettingWip1 import main
result = main()
self.assertEquals(result['parts'], 1)
self.assertEquals(result['simulationTime'], 0.25)
self.assertEquals(result["working_ratio"], 100)
def testSettingWip2(self):
from dream.simulation.Examples.SettingWip2 import main
result = main()
self.assertEquals(result['parts'], 2)
self.assertEquals(result['simulationTime'], 0.50)
self.assertEquals(result["working_ratio"], 100)
def testSettingWip3(self):
from dream.simulation.Examples.SettingWip3 import main
result = main()
self.assertEquals(result['parts'], 2)
self.assertEquals(result['simulationTime'], 0.35)
self.assertEquals(result["working_ratio"], 100)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment