Summary
In this chapter, we learned how to use the unittest
and unittest.mock
packages to write an automated test; we also learned the process of test-driven development. Next, we saw how to use unittest.mock
to control the environment that our test code runs in so that the test can remain focused on making sure one thing works properly. Post this, we learned how to run a test using Python's built-in unit test tools, and finally, we discussed how to take advantage of a couple of features of the nose test runner.
In the next chapter, we're going to take a look at the reactive programming paradigm and RxPY.