Skip to content

Commit f84f090

Browse files
committed
Loosen high-level mech requirements
In particular, sasl names and descriptions can be empty for some mechanisms (NTLM in particular); do not fail the test suite because they are empty. Signed-off-by: Alexander Scheel <[email protected]>
1 parent 335156e commit f84f090

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

gssapi/tests/test_high_level.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,12 @@ def test_sasl_properties(self):
385385
s = str(mech)
386386
s.shouldnt_be_empty()
387387
s.should_be_a(str)
388-
s.should_be(mech._saslname.mech_name.decode(encoding))
389388

390-
mech.sasl_name.shouldnt_be_empty()
391-
mech.sasl_name.should_be_a(six.text_type)
389+
if mech.sasl_name:
390+
mech.sasl_name.should_be_a(six.text_type)
392391

393-
mech.description.shouldnt_be_empty()
394-
mech.description.should_be_a(six.text_type)
392+
if mech.description:
393+
mech.description.should_be_a(six.text_type)
395394

396395
cmp_mech = gssmechs.Mechanism.from_sasl_name(mech.sasl_name)
397396
str(cmp_mech).should_be(str(mech))

0 commit comments

Comments
 (0)