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.
Glossary: Refactoring and Clean Code
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.