Chapter 3. Testing a Simple Home Page with Unit Tests
We finished the last chapter with a functional test failing, telling us that it wanted the home page for our site to have “To-Do” in its title. It’s time to start working on our application. In this chapter, we’ll build our first HTML page, find out about URL handling, and creating responses to HTTP requests with Django’s view functions.
Get Test-Driven Development with Python, 3rd 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.