Beispiel #1
0
 def test_special_characters(self):
     self.assertEqual('test', slugify('test*?#'))
Beispiel #2
0
 def test_slashes(self):
     self.assertEqual('test_1', slugify('test/1'))
     self.assertEqual('test_1_2', slugify('test/1/2'))
Beispiel #3
0
 def test_white_spaces(self):
     self.assertEqual('test_1', slugify('test 1'))
     self.assertEqual('test_1_2', slugify('test 1 2'))
Beispiel #4
0
 def test_underscore(self):
     self.assertEqual('test_1', slugify('test_1'))
     self.assertEqual('test_1_2', slugify('test_1_2'))
Beispiel #5
0
 def test_only_alpha(self):
     self.assertEqual('test', slugify('test'))
     self.assertEqual('test123', slugify('test123'))