2. Testing in Python#
This chapter picks up from last week on errors. Now the focus is on checking for errors by testing our code.
We will first have a look at the use of the Assert statement, and how different Errors are raised by Python. Then, we will look at more structured approaches to testing.