June 2017
Beginner to intermediate
274 pages
6h 49m
English
Inside our test_addition method, which is a unit test, we used a method called assertEqual to actually check that the result of the code was as expected. TestCase provides a wide range of these assert methods that test for various relationships between our results and what we expected. This is shown in the following code example:

Let's take a closer look at what these assert methods actually do:
Read now
Unlock full access