Glossary: Python Beyond the Basics
assert
Also written: AssertionError
A keyword that checks something is true; if it isn't, Python raises an AssertionError. Tests are built from `assert` lines.
Glossary: Python Beyond the Basics
Also written: AssertionError
A keyword that checks something is true; if it isn't, Python raises an AssertionError. Tests are built from `assert` lines.