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 with ToDD: https://packetpushers.net/podcast/podcasts/pq-show-81-network-testing-todd/.
In this section, let's look at how we can write...