HomePhabricator

Replace assertRaises with assertRaisesRegex in isbn_tests.py

Tags
None
Referenced Files
None
Subscribers
None

Description

Replace assertRaises with assertRaisesRegex in isbn_tests.py

assertRaises is not as good of a test as assertRaisesRegex.
The latter has an extra parameter to match the exception message,
allowing more precision when checking an error.

Bug: T154281
Change-Id: I0386fd012d6b92dfa776cc8e55bfff265af40e2e

Details

Provenance
Ryan10145Authored on Dec 19 2017, 3:46 AM
Parents
R3348:94059a9caa02: Merge "Explain that user must execute a second time the command"
Branches
Unknown
Tags
Unknown
ChangeId
I0386fd012d6b92dfa776cc8e55bfff265af40e2e

Event Timeline