HomePhabricator

[build-bot] Use unittest.assert* instead of plain asserts

Description

[build-bot] Use unittest.assert* instead of plain asserts

Summary:
Using the unittest module's assert methods provides more informative
and/or easier to understand error messages. We already use them in most places,
so this diff cleans up the remaining ones.

There is no change in behavior.

Test Plan: pytest

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D8028

Details

Provenance
jasonbcoxAuthored on Oct 21 2020, 20:55
abc-botPushed on Oct 21 2020, 21:01
Reviewer
Restricted Project
Differential Revision
D8028: [build-bot] Use unittest.assert* instead of plain asserts
Parents
rABC25ce183dcc9f: Merge #15631: qa: mininode: Clearer error message on invalid magic bytes
Branches
Unknown
Tags
Unknown