Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
erp5
Commits
5a890659
Commit
5a890659
authored
Mar 06, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preamble and whitespace cleanup.
parent
41d2ecee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
product/ERP5Type/tests/testConstraint.py
product/ERP5Type/tests/testConstraint.py
+7
-7
No files found.
product/ERP5Type/tests/testConstraint.py
View file @
5a890659
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
##############################################################################
#
#
# Copyright (c) 2005
Nexedi SARL
and Contributors. All Rights Reserved.
# Copyright (c) 2005
-2012 Nexedi SA
and Contributors. All Rights Reserved.
# Romain Courteaud <romain@nexedi.com>
# Romain Courteaud <romain@nexedi.com>
#
#
# WARNING: This program as such is intended to be used by professional
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole respons
a
bility of assessing all potential
# programmers who take the whole respons
i
bility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# End users who are looking for a ready-to-use solution with commercial
# g
arantees and support are strongly advic
ed to contract a Free Software
# g
uarantees and support are strongly advis
ed to contract a Free Software
# Service Company
# Service Company
#
#
# This program is Free Software; you can redistribute it and/or
# This program is Free Software; you can redistribute it and/or
...
@@ -1432,8 +1432,8 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1432,8 +1432,8 @@ class TestConstraint(PropertySheetTestCase):
portal_type
=
'Attribute Equality Constraint'
,
portal_type
=
'Attribute Equality Constraint'
,
constraint_attribute_name
=
'title'
,
constraint_attribute_name
=
'title'
,
constraint_attribute_value
=
'string:a'
,
constraint_attribute_value
=
'string:a'
,
)
)
consistency_message_list
=
obj
.
checkConsistency
()
consistency_message_list
=
obj
.
checkConsistency
()
self
.
assertEquals
(
1
,
len
(
consistency_message_list
))
self
.
assertEquals
(
1
,
len
(
consistency_message_list
))
message
=
consistency_message_list
[
0
]
message
=
consistency_message_list
[
0
]
...
@@ -1448,7 +1448,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1448,7 +1448,7 @@ class TestConstraint(PropertySheetTestCase):
obj
=
self
.
_makeOne
()
obj
=
self
.
_makeOne
()
obj
.
setTitle
(
'b'
)
obj
.
setTitle
(
'b'
)
property_sheet
=
self
.
_addProperty
(
property_sheet
=
self
.
_addProperty
(
obj
.
getPortalType
(),
obj
.
getPortalType
(),
"TestOverrideMessage"
,
"TestOverrideMessage"
,
commit
=
True
,
commit
=
True
,
property_id
=
"title_constraint"
,
property_id
=
"title_constraint"
,
...
@@ -1457,7 +1457,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1457,7 +1457,7 @@ class TestConstraint(PropertySheetTestCase):
constraint_attribute_value
=
'string:a'
,
constraint_attribute_value
=
'string:a'
,
message_invalid_attribute_value
=
'Attribute ${attribute_name} does not match'
,
message_invalid_attribute_value
=
'Attribute ${attribute_name} does not match'
,
)
)
consistency_message_list
=
obj
.
checkConsistency
()
consistency_message_list
=
obj
.
checkConsistency
()
self
.
assertEquals
(
1
,
len
(
consistency_message_list
))
self
.
assertEquals
(
1
,
len
(
consistency_message_list
))
message
=
consistency_message_list
[
0
]
message
=
consistency_message_list
[
0
]
...
...
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