X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Ftests%2Ftest_fsbase.py;fp=osm_common%2Ftests%2Ftest_fsbase.py;h=43349ad49c6f4199c284d0248d00071faf641db4;hb=2644b76248a1b96f7a47013b414e31b4e3feecf8;hp=4decad08d0fcbb51dd42041ccc1cc5b0335e6b6b;hpb=fee977a304dbfadee797e25906df2db3cf51f1e3;p=osm%2Fcommon.git diff --git a/osm_common/tests/test_fsbase.py b/osm_common/tests/test_fsbase.py index 4decad0..43349ad 100644 --- a/osm_common/tests/test_fsbase.py +++ b/osm_common/tests/test_fsbase.py @@ -55,40 +55,52 @@ def test_fs_disconnect(fs_base): def test_mkdir(fs_base): with pytest.raises(FsException) as excinfo: fs_base.mkdir(None) - assert str(excinfo.value).startswith(exception_message("Method 'mkdir' not implemented")) + assert str(excinfo.value).startswith( + exception_message("Method 'mkdir' not implemented") + ) assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR def test_file_exists(fs_base): with pytest.raises(FsException) as excinfo: fs_base.file_exists(None) - assert str(excinfo.value).startswith(exception_message("Method 'file_exists' not implemented")) + assert str(excinfo.value).startswith( + exception_message("Method 'file_exists' not implemented") + ) assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR def test_file_size(fs_base): with pytest.raises(FsException) as excinfo: fs_base.file_size(None) - assert str(excinfo.value).startswith(exception_message("Method 'file_size' not implemented")) + assert str(excinfo.value).startswith( + exception_message("Method 'file_size' not implemented") + ) assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR def test_file_extract(fs_base): with pytest.raises(FsException) as excinfo: fs_base.file_extract(None, None) - assert str(excinfo.value).startswith(exception_message("Method 'file_extract' not implemented")) + assert str(excinfo.value).startswith( + exception_message("Method 'file_extract' not implemented") + ) assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR def test_file_open(fs_base): with pytest.raises(FsException) as excinfo: fs_base.file_open(None, None) - assert str(excinfo.value).startswith(exception_message("Method 'file_open' not implemented")) + assert str(excinfo.value).startswith( + exception_message("Method 'file_open' not implemented") + ) assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR def test_file_delete(fs_base): with pytest.raises(FsException) as excinfo: fs_base.file_delete(None, None) - assert str(excinfo.value).startswith(exception_message("Method 'file_delete' not implemented")) + assert str(excinfo.value).startswith( + exception_message("Method 'file_delete' not implemented") + ) assert excinfo.value.http_code == http.HTTPStatus.INTERNAL_SERVER_ERROR