Skip to content
Permalink
Browse files

Remove a branch not taken

  • Loading branch information...
fredreichbier committed Jul 24, 2019
1 parent 58496a2 commit 04d223fd8e54317d33c0552d2deb81c1e031fe38
Showing with 3 additions and 2 deletions.
  1. +0 −2 privacyidea/lib/utils/compare.py
  2. +3 −0 tests/test_lib_utils_compare.py
@@ -63,8 +63,6 @@ def parse_comma_separated_string(input_string):
rows = list(reader)
except Exception as exx:
raise CompareError(u"Malformed comma-separated value: {!r}".format(input_string, exx))
if len(rows) != 1:
raise CompareError(u"Newlines in comma-separated values are unsupported: {!r}".format(input_string))
return rows[0]


@@ -82,6 +82,9 @@ def test_05_parse_comma_separated_string(self):
# error if we pass multiple lines
with self.assertRaises(CompareError):
parse_comma_separated_string('realm1\nrealm2')
# but we can quote newlines
self.assertEquals(parse_comma_separated_string('"realm1\nrealm2"'),
["realm1\nrealm2"])

def test_06_compare_in(self):
self.assertTrue(compare_values("hello", "in", "hello"))

0 comments on commit 04d223f

Please sign in to comment.
You can’t perform that action at this time.