Practice ยท 1 of 2
First Suite
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).
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: unittest Drills