Running a Failing Test

What does a failing test look like?

A failing test shows an F: the output shows the failed test and prints its docstring, the failed assert statement, and the asset statement's values.

What can you learn from a failing test?

A final summary shows the number of tests, their runtime, and the failures. A test can fail if the code generates a Python error or if an assertion fails.