Skip to content
Logo Logopumping python: how I solve problems with Test Driven Development
⌘ K
Logo Logopumping python: how I solve problems with Test Driven Development
  • pumping python: how I solve problems with test driven development
  • videos
  • how I setup my Integrated Development Environment (IDE)
  • how to make a test driven development environment
    • how to make a python test driven development environment
    • how to install Windows Subsystem for Linux on Windows
    • how to make a python test driven development environment on Windows without Windows Subsystem for Linux
  • AssertionError
  • functions
  • how to pass values
  • booleans
  • truth table
    • truth table: Nullary and Unary Operations
    • truth table: Binary Operations part 1
    • truth table: Binary Operations part 2
    • truth table: Binary Operations part 3
    • truth table: Binary Operations part 4
    • truth table: test_truth_table_tests
  • how to make a calculator
  • how to make a test driven development environment automatically
    • how to make a Python Test Driven Development environment automatically
    • how to make a Python Test Driven Development environment automatically on Windows without Windows Subsystem for Linux
  • how to handle Exceptions (Errors)
    • how to test that an Exception is raised
    • how to handle Exceptions (Errors) in programs
  • TypeError
  • lists
  • dictionaries
  • how to make a person
  • classes
  • AttributeError
  • ModuleNotFoundError
  • conventions
  • dot notation
  • errors
    • AssertionError
    • ModuleNotFoundError
    • AttributeError
    • TypeError
    • how to test that an Exception is raised
    • how to handle Exceptions (Errors) in programs
  • data structures
    • None: the simplest
    • Booleans: there are only 2
    • Lists: anything in [ ]
    • Dictionaries: key-value pairs
  • how tos
    • how I setup my Integrated Development Environment (IDE)
    • how to make a test driven development environment
    • how to make a calculator
    • how to pass values
    • how to make a person
    • how to handle Exceptions (Errors)
  • catalog of tests
  • all the code in this book
    • makePythonTdd.sh
    • makePythonTdd.ps1
    • AssertionError
    • None
    • booleans
    • truth table
    • how to pass values
    • functions
    • how to make a calculator
    • how to test/handle exceptions
    • TypeError
    • lists
    • list comprehensions
    • dictionaries
    • how to make a person
    • classes
    • ModuleNotFoundError
    • AttributeError
    • how to measure sleep duration
  • can we measure learning?
  • pumping python review
  • join a HATCH
  • what people think of this

Table of Contents

  • what is covered?
  • questions about Exceptions
  • what is next?
pumping python: how I solve problems with Test Driven Development
/
errors



errors

The tests in this chapter cover the following Exceptions

  • AssertionError
  • ModuleNotFoundError
  • AttributeError
  • TypeError

what is covered?

the chapters below cover handling Exceptions in tests and programs

  • how to test that an Exception is raised
  • how to handle Exceptions (Errors) in programs

questions about Exceptions

Here are some questions you can answer after going through these chapters

  • What is an Exception?

  • What is Exception handling?

  • What causes AssertionError?

  • What causes AttributeError?

  • What causes TypeError?

  • What causes ModuleNotFoundError?

  • What causes NameError?

  • What causes IndexError?

  • What causes KeyError?

  • How can I handle exceptions in a program

what is next?

Would you like to know how to test that an Exception is raised?

dot notation
data structures

On this page

  • what is covered?
  • questions about Exceptions
  • what is next?

© 2025, JadeCobra LLC Built with Sphinx 8.2.3