9 lines
219 B
Python
9 lines
219 B
Python
from text import slugify, shout
|
|
|
|
assert slugify('Hello, World!') == 'hello-world'
|
|
assert slugify(' a b ') == 'a-b'
|
|
assert slugify('---') == ''
|
|
assert slugify('x1_y2') == 'x1-y2'
|
|
assert shout('a') == 'A!'
|
|
print('ok')
|