One of the advantages of Pytest over the unittest module is that we don't need to use different assert methods on different data structures. Pytest, by way of magic (also known as introspection) can infere the actual value, the expected value, and the operation used in a plain old assert statement and can provide a rather nice error message.

Let's see a few of those error messages: