diff --git a/online-tests/test_0_login.py b/online-tests/test_0_login.py index c985cce5..4d2da77f 100644 --- a/online-tests/test_0_login.py +++ b/online-tests/test_0_login.py @@ -12,6 +12,19 @@ class TestDovecot: imap.connect() imap.login(user, password) + def test_login_same_password(self, imap, gencreds): + """Test two different users logging in with the same password. + + This ensures that authentication process does not confuse the users + by using only the password hash as a key. + """ + user1, password1 = gencreds() + user2, _password2 = gencreds() + imap.connect() + imap.login(user1, password1) + imap.connect() + imap.login(user2, password1) + def test_login_fail(self, imap, gencreds): user, password = gencreds() imap.connect()