Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cadbiom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIGNET Pierre
cadbiom
Commits
ef3607ca
Commit
ef3607ca
authored
5 years ago
by
VIGNET Pierre
Browse files
Options
Downloads
Patches
Plain Diff
[lib] Tests: restore for PID/bcx files
parent
40e4bb67
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/cadbiom/models/clause_constraints/mcl/TestMCLAnalyser.py
+17
-19
17 additions, 19 deletions
.../cadbiom/models/clause_constraints/mcl/TestMCLAnalyser.py
with
17 additions
and
19 deletions
library/cadbiom/models/clause_constraints/mcl/TestMCLAnalyser.py
+
17
−
19
View file @
ef3607ca
...
...
@@ -109,9 +109,7 @@ class ErrorRep(object):
class
TestMCLAnaLyzer
(
unittest
.
TestCase
):
"""
Unit tests for MCLAnalyser
"""
"""
Unit tests for MCLAnalyser class
"""
def
test_lit_sol_equal
(
self
):
"""
...
...
@@ -139,21 +137,20 @@ class TestMCLAnaLyzer(unittest.TestCase):
res
=
lit_sol_equal
(
sol1
,
sol2
)
self
.
assert_
(
not
res
,
'
Error in lit_sol inequality: number case
'
)
@unittest.skip
(
"
Test files not provided
"
)
def
test_load1
(
self
):
"""
Load from a bcx file
"""
"""
Load from a bcx file
"""
rep
=
ErrorRep
()
mcla
=
MCLAnalyser
(
rep
)
mcla
.
build_from_chart_file
(
"
../ucl/examples/test_tgfb_ref_300511.bcx
"
)
filename
=
pkg_resources
.
resource_filename
(
__name__
,
# package name
"
examples/delay1.bcx
"
)
mcla
.
build_from_chart_file
(
filename
)
res
=
rep
.
error
self
.
assert_
(
not
res
,
'
Error
in load1
'
)
self
.
assert_
(
not
res
,
"
Error
during the load of bcx file
"
)
def
test_load2
(
self
):
"""
Load from a cadlang file
"""
"""
Load from a cadlang file
"""
rep
=
ErrorRep
()
mcla
=
MCLAnalyser
(
rep
)
filename
=
pkg_resources
.
resource_filename
(
...
...
@@ -162,18 +159,19 @@ class TestMCLAnaLyzer(unittest.TestCase):
)
mcla
.
build_from_cadlang
(
filename
)
res
=
rep
.
error
self
.
assert_
(
not
res
,
'
Error
in load2
'
)
self
.
assert_
(
not
res
,
"
Error
during the load of cadlang file
"
)
@unittest.skip
(
"
Test files not provided
"
)
def
test_load3
(
self
):
"""
Load from a PID file
"""
"""
Load from a PID file
"""
rep
=
ErrorRep
()
mcla
=
MCLAnalyser
(
rep
)
mcla
.
build_from_pid_file
(
"
../ucl/examples/test_plk3_pathway.xml
"
)
filename
=
pkg_resources
.
resource_filename
(
__name__
,
# package name
"
../../guard_transitions/translators/tests/tgf_cano.xml
"
)
mcla
.
build_from_pid_file
(
filename
)
res
=
rep
.
error
self
.
assert_
(
not
res
,
'
Error in load3
'
)
self
.
assert_
(
not
res
,
"
during the load of PID xml file
"
)
def
test_delay1
(
self
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment