Skip to content
Snippets Groups Projects
Verified Commit a0a15f75 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autopep8

parent 5ddc285b
No related branches found
No related tags found
No related merge requests found
...@@ -365,7 +365,8 @@ def test_consistency_file_was_modified(): ...@@ -365,7 +365,8 @@ def test_consistency_file_was_modified():
c = runCheck(None, "-c FILE_WAS_MODIFIED") c = runCheck(None, "-c FILE_WAS_MODIFIED")
assert c.messages["Error", 0] is not None 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 # download file again and check if it is still the same (just to be
# sure that the server only simulated the consistency breach # sure that the server only simulated the consistency breach
...@@ -416,7 +417,8 @@ def test_consistency_file_does_not_exist(): ...@@ -416,7 +417,8 @@ def test_consistency_file_does_not_exist():
c = runCheck(None, "/debug/") c = runCheck(None, "/debug/")
assert c.messages["Info", 0] is not None 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 # when in debug mode, the server offers a special option
# #
...@@ -425,7 +427,8 @@ def test_consistency_file_does_not_exist(): ...@@ -425,7 +427,8 @@ def test_consistency_file_does_not_exist():
# which simulates a accidentially removed file. # which simulates a accidentially removed file.
c = runCheck(None, "-c FILE_DOES_NOT_EXIST") c = runCheck(None, "-c FILE_DOES_NOT_EXIST")
assert c.messages["Error", 0] is not None 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: with open(file_.download(target="test.dat.tmp"), "r") as d:
r = d.read() r = d.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment