Test the string variable
Now you will start using fixtures in unittest. This time, the prepared environment is the word 'banana'. Thus, the setup part is the word initialization, and the teardown part removes the variable.
This exercise is part of the course
Introduction to Testing in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise