Skip to content

Glossary: Refactoring and Clean Code

assert

Also written: assertion, asserts

A Python statement that checks something is true and fails the test if it isn't. A test with no assert can never catch a wrong result.

Where the book teaches it

Related terms

Characterization testCode coverage