Get startedGet started for free

Data with teardown

Teardowns help you to prevent memory leaks and other issues with the environment. In this exercise, you will implement a teardown for the prepare_data() function and run the test at the end.

This exercise is part of the course

Introduction to Testing in Python

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise