diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-01-08 16:32:41 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-02-08 15:16:48 +0100 |
commit | c2f1fdf93105e8956f876048c30d5668f1c5e521 (patch) | |
tree | c45175a13b14e626a0ca9f9b9f3b18dc5fe3b828 /tests | |
parent | a5f10e25b27fb860be0f06506d603197c2e5a955 (diff) | |
download | freeipa.git-c2f1fdf93105e8956f876048c30d5668f1c5e521.tar.gz freeipa.git-c2f1fdf93105e8956f876048c30d5668f1c5e521.tar.xz freeipa.git-c2f1fdf93105e8956f876048c30d5668f1c5e521.zip |
Raise ValidationError on invalid CSV values.
https://fedorahosted.org/freeipa/ticket/3323
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ipalib/test_parameters.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_ipalib/test_parameters.py b/tests/test_ipalib/test_parameters.py index e6ac91db..35955453 100644 --- a/tests/test_ipalib/test_parameters.py +++ b/tests/test_ipalib/test_parameters.py @@ -631,6 +631,10 @@ class test_Param(ClassChecker): assert type(n) is tuple assert len(n) is 3 + e = raises(ValidationError, o.split_csv, '"a') + assert e.name == 'my_list' + assert e.error == u'Improperly formatted CSV value (newline inside string)' + def test_split_csv_separator(self): """ Test the `ipalib.parameters.Param.split_csv` method with csv and a separator. |