Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
1a2fc131
Commit
1a2fc131
authored
Aug 15, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new examples added to test
parent
88d6c42e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
dream/tests/testSimulationExamples.py
dream/tests/testSimulationExamples.py
+23
-0
No files found.
dream/tests/testSimulationExamples.py
View file @
1a2fc131
...
...
@@ -132,3 +132,26 @@ class SimulationExamples(TestCase):
self
.
assertEquals
(
result
[
'NumM1'
],
2660
)
self
.
assertEquals
(
result
[
'NumM2'
],
220
)
def
testServerWithShift1
(
self
):
from
dream.simulation.Examples.ServerWithShift1
import
main
result
=
main
()
self
.
assertEquals
(
result
[
'parts'
],
3
)
self
.
assertTrue
(
49.99
<
result
[
"working_ratio"
]
<
50.01
)
def
testServerWithShift2
(
self
):
from
dream.simulation.Examples.ServerWithShift2
import
main
result
=
main
()
self
.
assertEquals
(
result
[
'parts'
],
16
)
self
.
assertTrue
(
49.99
<
result
[
"working_ratio"
]
<
50.01
)
def
testServerWithShift3
(
self
):
from
dream.simulation.Examples.ServerWithShift3
import
main
result
=
main
()
self
.
assertEquals
(
result
[
'parts'
],
4
)
self
.
assertTrue
(
59.99
<
result
[
"working_ratio"
]
<
60.01
)
def
testServerWithShift4
(
self
):
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment