Test for changing password

master
Bob Mottram 2019-07-03 20:13:23 +01:00
parent 5b6c812f91
commit f5df29cda9
1 changed files with 6 additions and 0 deletions

View File

@ -321,6 +321,12 @@ def testAuthentication():
authHeader=createBasicAuthHeader(nickname,password+'1') authHeader=createBasicAuthHeader(nickname,password+'1')
assert authorizeBasic(baseDir,authHeader)==False assert authorizeBasic(baseDir,authHeader)==False
password='someOtherPassword'
assert storeBasicCredentials(baseDir,nickname,password)
authHeader=createBasicAuthHeader(nickname,password)
assert authorizeBasic(baseDir,authHeader)
os.chdir(currDir) os.chdir(currDir)
shutil.rmtree(baseDir) shutil.rmtree(baseDir)