Writing tests for networking

So far, we have been mostly writing tests for our Python code. We have used both the unittest and pytest libraries to assert True/False and equal/Non-equal values. We were also able to write mocks to intercept our API calls when we do not have an actual API-capable device but still want to run our tests.

A few years ago, Matt Oswalt announced the Testing On Demand: Distributed (ToDD) validation tool for network changes. It is an open source framework aimed at testing network connectivity and distributed capacity. You can find more information about the project on its GitHub page: https://github.com/toddproject/todd. Oswalt also talked about the project on this Packet Pushers Priority Queue 81, Network Testing ...

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.