Refactor and Improve the Test

Learn to improve the test method using docstrings.

In this lesson, we refactor our test methods. The purpose of this refactoring is to improve the method by making it more descriptive. We use the Python document string also called the docstring for this.

What are docstrings?

To add comments to our code in Python, we use the # symbol, as shown below:

def
...