Data Science, Jupyter Notebook, Python, Deep Dives, Tips And Tricks.
leading/trailing whitespace, etc. With such information, we can write (input, output) pairs to test our function: Here we are using the @pytest.mark.parametrize decorator to parametrize a single test for each (name, expected) pair; we call our clean_name function with name and check if the output