Firts upload
This commit is contained in:
commit
fae5555503
184 changed files with 19239 additions and 0 deletions
15
tests/slugifytest.py
Normal file
15
tests/slugifytest.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from settings import config
|
||||
from cuchulu.libraries import slugify
|
||||
import unittest
|
||||
|
||||
class TestFieldMethods(unittest.TestCase):
|
||||
|
||||
def test_slugify(self):
|
||||
|
||||
phrase=slugify.slugify('this!()is a crap phrase o}çÇf oh yeah¡\'')
|
||||
|
||||
self.assertEqual(phrase, 'this---is-a-crap-phrase-o---f-oh-yeah--')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue