summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-02-14 11:34:16 -0500
committerMartin Kosek <mkosek@redhat.com>2013-02-22 17:20:35 +0100
commitb4915bd2fde861279ba18acf940d7a5880a58ba6 (patch)
tree5de71b4f687069fef5cc686f69f6b7f1336bac39 /tests
parentda42daac2929972889aa42ec3a6d82a1aca4f1d7 (diff)
downloadfreeipa-b4915bd2fde861279ba18acf940d7a5880a58ba6.tar.gz
freeipa-b4915bd2fde861279ba18acf940d7a5880a58ba6.tar.xz
freeipa-b4915bd2fde861279ba18acf940d7a5880a58ba6.zip
Remove csv_separator and csv_skipspace Param arguments
These were never set to anything but the defaults. Part of work for https://fedorahosted.org/freeipa/ticket/3352
Diffstat (limited to 'tests')
-rw-r--r--tests/test_ipalib/test_parameters.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/test_ipalib/test_parameters.py b/tests/test_ipalib/test_parameters.py
index 12270a94f..47c5de1fc 100644
--- a/tests/test_ipalib/test_parameters.py
+++ b/tests/test_ipalib/test_parameters.py
@@ -203,8 +203,6 @@ class test_Param(ClassChecker):
assert o.flags == frozenset()
assert o.sortorder == 2
assert o.csv is False
- assert o.csv_separator == ','
- assert o.csv_skipspace is True
# Test that doc defaults from label:
o = self.cls('my_param', doc=_('Hello world'))
@@ -635,35 +633,6 @@ class test_Param(ClassChecker):
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.
- """
- o = self.cls('my_list+', csv=True, csv_separator='|')
-
- n = o.split_csv('a')
- assert type(n) is tuple
- assert len(n) is 1
-
- n = o.split_csv('a|b')
- assert type(n) is tuple
- assert len(n) is 2
-
- def test_split_csv_skipspace(self):
- """
- Test the `ipalib.parameters.Param.split_csv` method with csv without skipping spaces.
- """
- o = self.cls('my_list+', csv=True, csv_skipspace=False)
-
- n = o.split_csv('a')
- assert type(n) is tuple
- assert len(n) is 1
-
- n = o.split_csv('a, "b,c", d')
- assert type(n) is tuple
- # the output w/o skipspace is ['a',' "b','c"',' d']
- assert len(n) is 4
-
class test_Flag(ClassChecker):
"""