Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Klaus Wölfel
erp5
Commits
7d39f342
Commit
7d39f342
authored
13 years ago
by
Arnaud Fontaine
Browse files
Options
Download
Email Patches
Plain Diff
Use fail() instead of raising AssertionError in ZODB Component tests.
parent
95f3f8f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5Type/tests/testDynamicClassGeneration.py
product/ERP5Type/tests/testDynamicClassGeneration.py
+5
-5
No files found.
product/ERP5Type/tests/testDynamicClassGeneration.py
View file @
7d39f342
...
...
@@ -1276,8 +1276,8 @@ class _TestZodbComponent(SecurityTestCase):
except
ImportError
:
pass
else
:
raise
AssertionError
(
"Component '%s' should not have been generated"
%
\
full_module_name
)
self
.
fail
(
"Component '%s' should not have been generated"
%
\
full_module_name
)
def
assertModuleImportable
(
self
,
module_name
):
full_module_name
=
self
.
_getComponentFullModuleName
(
module_name
)
...
...
@@ -1286,8 +1286,8 @@ class _TestZodbComponent(SecurityTestCase):
__import__
(
full_module_name
,
fromlist
=
[
self
.
_getComponentModuleName
()],
level
=
0
)
except
ImportError
:
raise
AssertionError
(
"Component '%s' should have been generated"
%
\
full_module_name
)
self
.
fail
(
"Component '%s' should have been generated"
%
\
full_module_name
)
def
testValidateInvalidate
(
self
):
"""
...
...
@@ -1721,7 +1721,7 @@ class TestZodbExtensionComponent(_TestZodbComponent):
self
.
assertEquals
(
e
.
message
,
'external method could not be called because it is None'
)
else
:
raise
AssertionError
(
"TestExternalMethod should not be callable"
)
self
.
fail
(
"TestExternalMethod should not be callable"
)
from
Products.ERP5Type.Core.DocumentComponent
import
DocumentComponent
...
...
This diff is collapsed.
Click to expand it.
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