Buckets:

download
raw
867 Bytes
from nos import exceptions as exc
def test_server_exception():
message = "Test ServerException"
exception = ValueError("Test Exception")
server_exception = exc.ServerException(message, exception)
assert server_exception.message.startswith(message)
assert server_exception.exc == exception
expected_error_message = f"{message}, details={exception}"
assert str(server_exception) == expected_error_message
def test_model_not_found_error():
message = "Test ModelNotFoundError"
exception = ValueError("Test Exception")
model_not_found_error = exc.ModelNotFoundError(message, exception)
assert model_not_found_error.message.startswith(message)
assert model_not_found_error.exc == exception
expected_error_message = f"{message}, details={exception}"
assert str(model_not_found_error) == expected_error_message

Xet Storage Details

Size:
867 Bytes
·
Xet hash:
d82f39a3c7b392c16478976d8906ed03f0972406137aafe996cafd87ca115e4d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.