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 asserRaisesRegex.
The latter has an extra parameter to match the exception message,
allowing more more precision when checking an error.

Bug: T154281
Change-Id: Iaab3472bbae926caf5d68239b3828b5691ee38b9

Details

Provenance
divadsnAuthored on Jan 13 2018, 4:56 PM
Parents
R3347:85081aec89ef: Merge "DeprecationWarning: support for py2.6 and py3.3 will be dropped"
Branches
Unknown
Tags
Unknown
ChangeId
Iaab3472bbae926caf5d68239b3828b5691ee38b9

Event Timeline