tests: fix for c17d4b52

The exception type changed, but there's no reason we need to actually
assert it. We can assert the human-friendly message instead.

Change-Id: I90b33d77ad3b71ea6669ca5381cb342fb5436863
Merge "tests: fix for c17d4b52" into release-0.12