Skip to Content
Python Crash Course, 3rd Edition
book

Python Crash Course, 3rd Edition

by Eric Matthes
January 2023
Intermediate to advanced
552 pages
13h 38m
English
No Starch Press
Content preview from Python Crash Course, 3rd Edition

11 Testing Your Code

When you write a function or a class, you can also write tests for that code. Testing proves that your code works as it’s supposed to in response to all the kinds of input it’s designed to receive. When you write tests, you can be confident that your code will work correctly as more people begin to use your programs. You’ll also be able to test new code as you add it, to make sure your changes don’t break your program’s existing behavior. Every programmer makes mistakes, so every programmer must test their code often, to catch problems before users encounter them.

In this chapter, you’ll learn to test your code using ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Fundamentals with Paul Deitel, 2nd Edition

Python Fundamentals with Paul Deitel, 2nd Edition

Paul Deitel

Publisher Resources

ISBN: 9781098156664