We should avoid using print, we can use the logging module to print messages.

Also, if the list is empty:

* Is that an error (the test must fail)?
* That could happen and what does it mean?