From 68c2dad8d99f11db4a5caaa287375f97e702ac7c Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 15 Nov 2017 17:11:44 +0100 Subject: [PATCH] For SCRAM, check clients send an empty response at the end. https://github.com/ircv3/ircv3-specifications/pull/326 --- irctest/client_tests/test_sasl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irctest/client_tests/test_sasl.py b/irctest/client_tests/test_sasl.py index 28e1320..f150ed1 100644 --- a/irctest/client_tests/test_sasl.py +++ b/irctest/client_tests/test_sasl.py @@ -158,6 +158,10 @@ class SaslTestCase(cases.BaseClientTestCase, cases.ClientNegociationHelper, self.sendLine('AUTHENTICATE :' + base64.b64encode(response).decode()) self.assertEqual(properties, {'authzid': None, 'username': 'jilles'}) + m = self.getMessage() + self.assertEqual(m.command, 'AUTHENTICATE', m) + self.assertEqual(m.params, ['+'], m) + @cases.OptionalityHelper.skipUnlessHasMechanism('SCRAM-SHA-256') def testScramBadPassword(self): """Test SCRAM-SHA-256 authentication with a bad password.