From 957598755571575b651bf5bc2526effe197cc9e5 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 b0fa550..356521c 100644 --- a/irctest/client_tests/test_sasl.py +++ b/irctest/client_tests/test_sasl.py @@ -191,6 +191,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.