Chapter 11 ยท Part I: Basics

Testing Your Code

Book: Ch. 11, 'Testing Your Code', pp. 209โ€“224

Pages this chapter covers

Section titles and printed pages from the 3rd edition. Notes below use the full citation.

  • Installing pytest with pipp. 210
    • Updating pipp. 210
    • Installing pytestp. 211
  • Testing a Functionp. 211
    • Unit Tests and Test Casesp. 212
    • A Passing Testp. 212
    • Running a Testp. 213
    • A Failing Testp. 214
    • Responding to a Failed Testp. 215
    • Adding New Testsp. 216
  • Testing a Classp. 217
    • A Variety of Assertionsp. 217
    • A Class to Testp. 218
    • Testing the AnonymousSurvey Classp. 220
    • Using Fixturesp. 221
  • Summaryp. 223

Notes

Notes are not written yet

The section list above is only a map of the book, with printed page numbers, so you can read the chapter and come back. Original notes for this chapter are still to come.