From f5df29cda96d2f34532b9b4f916ac50e46e52d7b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Jul 2019 20:13:23 +0100 Subject: [PATCH] Test for changing password --- tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests.py b/tests.py index c5e46d636..90d00df42 100644 --- a/tests.py +++ b/tests.py @@ -321,6 +321,12 @@ def testAuthentication(): authHeader=createBasicAuthHeader(nickname,password+'1') assert authorizeBasic(baseDir,authHeader)==False + password='someOtherPassword' + assert storeBasicCredentials(baseDir,nickname,password) + + authHeader=createBasicAuthHeader(nickname,password) + assert authorizeBasic(baseDir,authHeader) + os.chdir(currDir) shutil.rmtree(baseDir)