From 7c2626ec5c6b11142b08d005fc9cae67fe75ef12 Mon Sep 17 00:00:00 2001 From: Mark Bishop Date: Wed, 4 Dec 2024 14:54:55 -0500 Subject: [PATCH] More fixes --- tests/test_pam_duo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_pam_duo.py b/tests/test_pam_duo.py index 65ed0ce..28fd565 100755 --- a/tests/test_pam_duo.py +++ b/tests/test_pam_duo.py @@ -398,8 +398,8 @@ def test_invalid_delimiter_value_colon(self): result = pam_duo( ["-d", "-c", temp.name, "true"], ) - self.assertEqual( - result["stderr"][1], + self.assertRegexSomeline( + result["stderr"], "Invalid gecos_delim '{delim}' (delimiter must be punctuation other than ':')".format( delim=config["gecos_delim"] ), @@ -419,15 +419,15 @@ def test_invalid_delimiter_value_whitespace(self): ["-d", "-c", temp.name, "true"], ) self.assertEqual( - result["stderr"][1], + result["stderr"][0], "Invalid character option length. Character fields must be 1 character long: ''", ) self.assertRegex( - result["stderr"][2], + result["stderr"][1], r"Invalid pam_duo option: 'gecos_delim'", ) self.assertRegex( - result["stderr"][3], + result["stderr"][2], r"Parse error in {config}, line \d+".format(config=temp.name), )