Python Testing with Unittest - Level 2

DifficultyIntermediate
AVG Duration3h
Students6
Content
3

Description

Python is one of the most commonly used programming languages in the world. Due to the flexibility of the language it is used for a wide range of use cases such as: web application development, data science, machine learning, video games, etc.

There are many ways for software to break or exhibit unexpected behaviors. Creating reliable software is a non-trivial endeavor. Trusting software to behave correctly introduces risk. That risk is mitigated by software testing.

In this learning path you'll learn:

How to use Python’s built-in unittest module.

Learning Objectives:

  • Use the built-in unittest module
  • Explain the built-in unittest.mock module
  • Explain the built-in unittest.mock.patch callable



Certificate

Your certificate for this learning path

Training Content

1
Hands-on Lab - Intermediate - 2h
Python: Introduction to Unittest
Python's built-in unittest module is a testing framework for creating unit and integration tests. This lab introduces the unittest module through hands-on learning.
2
Hands-on Lab - Intermediate - 2h
Python: Introduction to Mocking
The unittest.mock module is Python's built-in mocking and patching module. Used to replace objects with fake implementations during testing. This lab introduces the unittest.mock module through hands-on learning.
3
Hands-on Lab - Intermediate - 2h
Python: Introduction to Patching
The unittest.mock module is Python's built-in mocking and patching module. Used to replace objects with fake implementations during testing. This lab introduces the unittest.mock.patch callable through hands-on learning.
About the Author
Students95980
Labs28
Courses46
Learning paths54

Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.

Covered Topics