예제 #1
0
 def test_punctuation_inner(self):
     assert setup.slugify('a!@b') == 'a-b'
예제 #2
0
 def test_basic(self):
     assert setup.slugify('sanskrit') == 'sanskrit'
예제 #3
0
 def test_uppercase(self):
     assert setup.slugify('Sanskrit') == 'sanskrit'
예제 #4
0
 def test_whitespace(self):
     assert setup.slugify('Sanskrit grammar') == 'sanskrit-grammar'
예제 #5
0
 def test_punctuation_outer(self):
     assert setup.slugify('`a`') == 'a'