The custom error message can easily be replaced by a docstring. Using test assertions correctly is more important.