Fix returning lazily-localized strings in hosting service exceptions.
Review Request #9792 — Created March 15, 2018 and submitted
We had several places in the hosting service code where we served up
lazily-localized strings using
ugettext_lazy(). While this will
normally get turned into a string at some point, it's not correct, and
caused issues in unit tests when assertion messages were added.
This adds unit tests to check messages along with assertion types, and
updates the hosting services to use
ugettext()for exception messages.
Unit tests pass.
git adda few lines.
Revision 2 (+115 -75)
Checks run (2 succeeded)