Commit 5494fe35 authored by Yoshinori Okuji's avatar Yoshinori Okuji

This is the right behavior.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14537d73
...@@ -414,25 +414,23 @@ class TestConstraint(PropertySheetTestCase): ...@@ -414,25 +414,23 @@ class TestConstraint(PropertySheetTestCase):
# Test Constraint with property defined on object # Test Constraint with property defined on object
# With None value # With None value
# None is considered as a NULL value for string # None is considered as a NULL value for string
# and so, is considered as a data # and so, is considered as no data
sequence_string = '\ sequence_string = '\
CreateObject \ CreateObject \
SetObjectNoneTitle \ SetObjectNoneTitle \
CreatePropertyExistence2 \ CreatePropertyExistence2 \
CallCheckConsistency \ CallCheckConsistency \
CheckIfConstraintSucceeded \ CheckIfConstraintFailed \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
# Test Constraint with property defined on object # Test Constraint with property defined on object
# With '' value # With '' value
# As disapointing as it could be, empty string is a data,
# and test must succeed
sequence_string = '\ sequence_string = '\
CreateObject \ CreateObject \
SetObjectEmptyTitle \ SetObjectEmptyTitle \
CreatePropertyExistence2 \ CreatePropertyExistence2 \
CallCheckConsistency \ CallCheckConsistency \
CheckIfConstraintSucceeded \ CheckIfConstraintFailed \
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
# Test Constraint with property defined on object # Test Constraint with property defined on object
......
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