Skip to main content

Practice · 1 of 2

First Suite

CHALLENGE
Difficulty: intermediate+25 XP

Implement a function slugify(text) that lowercases and joins words with '-' (split on whitespace). Then write a unittest.TestCase class named TestSlugify with TWO test methods covering a normal case and an edge case, and assign the class to the variable SUITE_TEST (the grader imports it and runs it).

Back to lesson: Practice: unittest Drills