diff --git a/tests/test_file.py b/tests/test_file.py index d1abecf41788343edace45d379b44d9bc37bd2ab..fb8d6568a9341512cc7eccf154cf1c9443386815 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -365,7 +365,8 @@ def test_consistency_file_was_modified(): c = runCheck(None, "-c FILE_WAS_MODIFIED") assert c.messages["Error", 0] is not None - assert c.messages["Error", 0][0] == 'debug/test_file_storage_consistency: File was modified.' + assert c.messages["Error", + 0][0] == 'debug/test_file_storage_consistency: File was modified.' # download file again and check if it is still the same (just to be # sure that the server only simulated the consistency breach @@ -416,7 +417,8 @@ def test_consistency_file_does_not_exist(): c = runCheck(None, "/debug/") assert c.messages["Info", 0] is not None - assert c.messages["Info", 0][0] == "File system below debug/ is consistent." + assert c.messages["Info", + 0][0] == "File system below debug/ is consistent." # when in debug mode, the server offers a special option # @@ -425,7 +427,8 @@ def test_consistency_file_does_not_exist(): # which simulates a accidentially removed file. c = runCheck(None, "-c FILE_DOES_NOT_EXIST") assert c.messages["Error", 0] is not None - assert c.messages["Error", 0][0] == 'debug/test_file_storage_consistency: File does not exist.' + assert c.messages["Error", + 0][0] == 'debug/test_file_storage_consistency: File does not exist.' with open(file_.download(target="test.dat.tmp"), "r") as d: r = d.read()