In addition to the built-in library of unittest, there are lots of other Python testing frameworks in the community. Pytest is another robust Python testing framework that is worth a look. pytest can be used for all types and levels of software testing. It can be used by developers, QA engineers, individuals practicing Test-Driven Development, and open source projects. Many of the large-scale open source projects have switched from unittest or nose to pytest, including Mozilla and Dropbox. The main attractive features of pytest were a third-party plugin model, a simple fixture model, and assert rewriting.
More on Python testing
If you want to learn more about the pytest framework, I would highly recommend Python Testing with PyTest by Brian ...
Get Mastering Python Networking - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.