Skip to content

Chapter 11: Testing Your Code

Jarlin Almanzar edited this page Nov 23, 2019 · 1 revision

Code Testing

We will be using Python's unittest module.

Unit Test and Test cases

A unit test verifies that one specific aspect of a function's behavior is correct.

A test case is a collection of unit tests that together prove that a function behaves as it's supposed to, within the full range of the situations that it's expected to handle.

A test case with full coverage includes a full range of unit tests covering all possible ways you can functions.

Clone this wiki locally