Summary
We have now covered the basics of unit testing Django applications. In this chapter, we:
Converted the previously-written doctests for the
Survey
model to unit tests, which allowed us to directly compare the pros and cons of each test approachRevisited the doctest caveats from the previous chapter and examined to what extent (if any) unit tests are susceptible to the same issues
Began to learn some of the additional features available with unit tests; in particular, features related to loading test data
In the next chapter, we will start investigating even more advanced features that are available to Django unit tests.