Introduction
In the preceding chapters, we have focused upon building our web application in Django by writing different components such as database models, views, and templates. We did all that to provide our users with an interactive application where they can create a profile and write reviews for the books they have read.
Apart from building and running the application, there is another important aspect of making sure that the application code works the way we expect it to work. This is ensured by a technique called testing. In testing, we run the different parts of the web application and check whether the output of the executed component matches the output we expected. If the output matches, we can say that the component was tested successfully, and if the output does not match, we say that the component failed to work as intended.
In this chapter, as we go through the different sections, we will learn why testing is important, what the different ways to test a web application...